update conditional; it was not working live
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
3b497df69b
commit
416d7dcc0c
10
gitea.yml
10
gitea.yml
@ -73,9 +73,15 @@
|
||||
- /etc/gitea
|
||||
|
||||
|
||||
- name: Debug ansible_virtualization_type
|
||||
ansible.builtin.debug:
|
||||
var: ansible_virtualization_type
|
||||
verbosity: 1
|
||||
|
||||
|
||||
- name: Manage Gitea service
|
||||
when:
|
||||
- ansible_virtualization_type | select('match', '(?:podman|docker|container)')
|
||||
- not ansible_virtualization_type | regex_search('(podman|docker|container)')
|
||||
block:
|
||||
- name: Deploy unit file for Gitea
|
||||
ansible.builtin.template:
|
||||
@ -102,7 +108,7 @@
|
||||
name : gitea
|
||||
state : restarted
|
||||
when:
|
||||
- ansible_virtualization_type | select('match', '(?:podman|docker|container)')
|
||||
- not ansible_virtualization_type | regex_search('(podman|docker|container)')
|
||||
|
||||
|
||||
...
|
||||
|
Loading…
x
Reference in New Issue
Block a user