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"
|
name: "unbound"
|
||||||
state: "restarted"
|
state: "restarted"
|
||||||
enabled: true
|
enabled: true
|
||||||
when: 'ansible_os_family == "Alpine"'
|
when: 'ansible_facts["os_family"] == "Alpine"'
|
||||||
|
|
||||||
- name: "restart unbound debian"
|
- name: "restart unbound debian"
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
|
|
@ -14,4 +14,4 @@
|
||||||
state: "restarted"
|
state: "restarted"
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
enabled: true
|
enabled: true
|
||||||
when: "ansible_os_family == 'Debian'"
|
when: "ansible_facts['os_family'] == 'Debian'"
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,10 @@
|
||||||
name: "unbound"
|
name: "unbound"
|
||||||
update_cache: true
|
update_cache: true
|
||||||
retries: 3
|
retries: 3
|
||||||
when: 'ansible_os_family == "Alpine"'
|
when: 'ansible_facts["os_family"] == "Alpine"'
|
||||||
|
|
||||||
- name: "install unbound"
|
- name: "install unbound"
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name: "unbound"
|
name: "unbound"
|
||||||
cache_valid_time: 120
|
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