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
8bbcd22d6f
commit
2fa3b0027f
1 changed files with 3 additions and 3 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# install on debian
|
||||
- name: "install on debian"
|
||||
when: 'ansible_os_family == "Debian"'
|
||||
when: 'ansible_facts["os_family"] == "Debian"'
|
||||
block:
|
||||
|
||||
# install haproxy
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
# install on alpine
|
||||
- name: "install on alpine"
|
||||
when: 'ansible_os_family == "Alpine"'
|
||||
when: 'ansible_facts["os_family"] == "Alpine"'
|
||||
block:
|
||||
|
||||
# install haproxy
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
name: "haproxy"
|
||||
state: "latest"
|
||||
update_cache: true
|
||||
when: 'ansible_os_family == "Alpine"'
|
||||
when: 'ansible_facts["os_family"] == "Alpine"'
|
||||
|
||||
# start haproxy service
|
||||
- name: "service - start haproxy"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue