slight code refactor
This commit is contained in:
parent
f767585c28
commit
ad6f94ad1a
11
gitea.yml
11
gitea.yml
@ -32,12 +32,13 @@
|
|||||||
register : r_check_gitea
|
register : r_check_gitea
|
||||||
|
|
||||||
|
|
||||||
- name: Gitea presence and version verification
|
- name: Fetch Gitea binary and notify user
|
||||||
ansible.builtin.debug :
|
|
||||||
msg : "Gitea binary not found or version mismatch."
|
|
||||||
when :
|
when :
|
||||||
- (r_check_gitea.rc == 1 or r_check_gitea.stdout is not search(__gitea_version))
|
- (r_check_gitea.rc == 1 or r_check_gitea.stdout is not search(__gitea_version))
|
||||||
|
block:
|
||||||
|
- name: Gitea binary not found or version mismatch
|
||||||
|
ansible.builtin.debug :
|
||||||
|
msg : "Gitea binary not found or version mismatch."
|
||||||
|
|
||||||
- name: "Fetch Gitea {{ __gitea_version }}"
|
- name: "Fetch Gitea {{ __gitea_version }}"
|
||||||
ansible.builtin.get_url :
|
ansible.builtin.get_url :
|
||||||
@ -45,8 +46,6 @@
|
|||||||
dest : /usr/local/bin/gitea
|
dest : /usr/local/bin/gitea
|
||||||
mode : "0755"
|
mode : "0755"
|
||||||
notify : Restart Gitea
|
notify : Restart Gitea
|
||||||
when :
|
|
||||||
- (r_check_gitea.rc == 1 or r_check_gitea.stdout is not search(__gitea_version))
|
|
||||||
|
|
||||||
|
|
||||||
- name: Create Gitea user
|
- name: Create Gitea user
|
||||||
|
Loading…
x
Reference in New Issue
Block a user