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
|
|
@ -11,7 +11,7 @@
|
|||
name: "{{ apt_default_install }}"
|
||||
state: "present"
|
||||
update_cache: true
|
||||
when: 'ansible_os_family == "Debian"'
|
||||
when: 'ansible_facts["os_family"] == "Debian"'
|
||||
loop: "{{ apt_default_packages_install }}"
|
||||
loop_control:
|
||||
loop_var: "apt_default_install"
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
name: "{{ apt_default_delete }}"
|
||||
state: "absent"
|
||||
purge: true
|
||||
when: 'ansible_os_family == "Debian"'
|
||||
when: 'ansible_facts["os_family"] == "Debian"'
|
||||
loop: "{{ apt_default_packages_delete }}"
|
||||
loop_control:
|
||||
loop_var: "apt_default_delete"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue