1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00

Merge pull request #81 from mar1ad/ansible-lint

Fix newest ansible-lint issues
This commit is contained in:
L3D 2022-06-08 14:59:43 +02:00 committed by GitHub
commit 5dca8875bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 9 deletions

View file

@ -4,17 +4,20 @@ galaxy_info:
author: do1jlr
description: Ansible role to configure and deploy gitea, a painless self-hosted Git service.
license: "BSD-3-Clause"
min_ansible_version: 2.11
github_branch: main
min_ansible_version: "2.11"
platforms:
- name: Debian
versions: all
versions:
- all
- name: Ubuntu
versions: all
versions:
- all
- name: Fedora
versions: all
versions:
- all
- name: EL
versions: all
versions:
- all
galaxy_tags:
- gitea
- git

View file

@ -2,7 +2,8 @@
- name: Get service facts
ansible.builtin.service_facts:
- block:
- name: Backup block
block:
- name: Stopping gitea before upgrade
become: true
ansible.builtin.systemd:

View file

@ -1,5 +1,6 @@
---
- block:
- name: Dependency block
block:
- name: Update apt cache
become: true
ansible.builtin.apt:
@ -20,7 +21,8 @@
retries: 5
delay: 2
- block:
- name: Install block
block:
- name: Download gitea archive
ansible.builtin.get_url:
url: "{{ gitea_dl_url }}.xz"