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
e430d6cb00
commit
a2eb035b7b
2 changed files with 4 additions and 4 deletions
|
|
@ -6,7 +6,7 @@
|
|||
name: "unbound"
|
||||
state: "restarted"
|
||||
enabled: true
|
||||
when: 'ansible_os_family == "Alpine"'
|
||||
when: 'ansible_facts["os_family"] == "Alpine"'
|
||||
|
||||
- name: "restart unbound debian"
|
||||
ansible.builtin.systemd:
|
||||
|
|
@ -14,4 +14,4 @@
|
|||
state: "restarted"
|
||||
daemon_reload: true
|
||||
enabled: true
|
||||
when: "ansible_os_family == 'Debian'"
|
||||
when: "ansible_facts['os_family'] == 'Debian'"
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@
|
|||
name: "unbound"
|
||||
update_cache: true
|
||||
retries: 3
|
||||
when: 'ansible_os_family == "Alpine"'
|
||||
when: 'ansible_facts["os_family"] == "Alpine"'
|
||||
|
||||
- name: "install unbound"
|
||||
ansible.builtin.apt:
|
||||
name: "unbound"
|
||||
cache_valid_time: 120
|
||||
when: 'ansible_os_family == "Debian"'
|
||||
when: 'ansible_facts["os_family"] == "Debian"'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue