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
d22d855302
commit
ca0d331181
3 changed files with 9 additions and 9 deletions
|
|
@ -3,8 +3,8 @@
|
|||
# these set of tasks will upgrade Alpine from v3.22 to v3.23
|
||||
- name: "upgrade to alpine v3.23"
|
||||
when:
|
||||
- "ansible_distribution == 'Alpine'"
|
||||
- "'3.22' in ansible_distribution_version"
|
||||
- "ansible_facts['distribution'] == 'Alpine'"
|
||||
- "'3.22' in ansible_facts['distribution_version']"
|
||||
block:
|
||||
|
||||
# change repositories
|
||||
|
|
@ -52,7 +52,7 @@
|
|||
ansible.builtin.command:
|
||||
cmd: "fstrim /"
|
||||
changed_when: false
|
||||
when: "ansible_virtualization_type == 'kvm'"
|
||||
when: "ansible_facts['virtualization_type'] == 'kvm'"
|
||||
|
||||
# all is done
|
||||
- name: "all is done"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue