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
|
|
@ -13,7 +13,7 @@
|
|||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0644"
|
||||
when: 'ansible_distribution == "Alpine"'
|
||||
when: 'ansible_facts["distribution"] == "Alpine"'
|
||||
notify: "restart syslog alpine"
|
||||
|
||||
# configure rsyslogd - debian
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0644"
|
||||
when: 'ansible_distribution == "Debian"'
|
||||
when: 'ansible_facts["distribution"] == "Debian"'
|
||||
notify: "restart rsyslog"
|
||||
|
||||
# configure rsyslogd - ubuntu
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0644"
|
||||
when: 'ansible_distribution == "Ubuntu"'
|
||||
when: 'ansible_facts["distribution"] == "Ubuntu"'
|
||||
notify: "restart rsyslog"
|
||||
|
||||
# configure rsyslogd - apt
|
||||
|
|
@ -46,7 +46,7 @@
|
|||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0644"
|
||||
when: 'ansible_os_family == "Debian"'
|
||||
when: 'ansible_facts["os_family"] == "Debian"'
|
||||
notify: "restart rsyslog"
|
||||
|
||||
# configure rsyslogd
|
||||
|
|
@ -57,5 +57,5 @@
|
|||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0644"
|
||||
when: 'ansible_os_family == "Debian"'
|
||||
when: 'ansible_facts["os_family"] == "Debian"'
|
||||
notify: "restart rsyslog"
|
||||
|
|
|
|||
|
|
@ -6,5 +6,5 @@
|
|||
name: "rsyslog"
|
||||
state: "present"
|
||||
cache_valid_time: 3600
|
||||
when: 'ansible_os_family == "Debian"'
|
||||
when: 'ansible_facts["os_family"] == "Debian"'
|
||||
tags: "syslog"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue