chore: migrate bare ansible_* facts to ansible_facts[] syntax
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
This commit is contained in:
parent
b759bea241
commit
2272aa6a58
23 changed files with 70 additions and 70 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# manage packages
|
||||
- name: "manage packages"
|
||||
when: 'ansible_os_family == "Alpine"'
|
||||
when: 'ansible_facts["os_family"] == "Alpine"'
|
||||
become: true
|
||||
block:
|
||||
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
community.general.apk:
|
||||
name: "qemu-guest-agent"
|
||||
state: "absent"
|
||||
when: "ansible_virtualization_type == 'lxc'"
|
||||
when: "ansible_facts['virtualization_type'] == 'lxc'"
|
||||
|
||||
|
||||
# install qemu-guest-agent
|
||||
|
|
@ -37,7 +37,7 @@
|
|||
community.general.apk:
|
||||
name: "qemu-guest-agent"
|
||||
state: "present"
|
||||
when: "ansible_virtualization_type == 'kvm'"
|
||||
when: "ansible_facts['virtualization_type'] == 'kvm'"
|
||||
|
||||
# clean cache
|
||||
- name: "clean cache"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue