Merge pull request 'update conditional; it was not working live' (#4) from development into main

Reviewed-on: #4
This commit is contained in:
Chris Hammer 2023-11-27 01:29:55 -05:00
commit e085a65725

View File

@ -73,9 +73,15 @@
- /etc/gitea - /etc/gitea
- name: Debug ansible_virtualization_type
ansible.builtin.debug:
var: ansible_virtualization_type
verbosity: 1
- name: Manage Gitea service - name: Manage Gitea service
when: when:
- ansible_virtualization_type | select('match', '(?:podman|docker|container)') - not ansible_virtualization_type | regex_search('(podman|docker|container)')
block: block:
- name: Deploy unit file for Gitea - name: Deploy unit file for Gitea
ansible.builtin.template: ansible.builtin.template:
@ -102,7 +108,7 @@
name : gitea name : gitea
state : restarted state : restarted
when: when:
- ansible_virtualization_type | select('match', '(?:podman|docker|container)') - not ansible_virtualization_type | regex_search('(podman|docker|container)')
... ...