chore: migrate bare ansible_* facts to ansible_facts[] syntax
All checks were successful
ci/woodpecker/push/linting Pipeline was successful

This commit is contained in:
Simon Cornet 2026-05-19 09:19:03 +02:00
commit 2272aa6a58
23 changed files with 70 additions and 70 deletions

View file

@ -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"

View file

@ -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"