chore: migrate bare ansible_* facts to ansible_facts[] syntax
Some checks failed
ci/woodpecker/push/linting Pipeline failed
Some checks failed
ci/woodpecker/push/linting Pipeline failed
This commit is contained in:
parent
bf1e9652c5
commit
691ca56904
2 changed files with 7 additions and 7 deletions
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
# install repository - debian
|
||||
- name: "install repository"
|
||||
when: 'ansible_os_family == "Debian"'
|
||||
when: 'ansible_facts["os_family"] == "Debian"'
|
||||
block:
|
||||
|
||||
- name: "remove old zabbix-release"
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
- name: "install zabbix-release"
|
||||
ansible.builtin.apt:
|
||||
deb: "{{ zabbix_repo_url[ansible_distribution][ansible_distribution_major_version | int] }}"
|
||||
deb: "{{ zabbix_repo_url[ansible_facts['distribution']][ansible_facts['distribution_major_version'] | int] }}"
|
||||
state: "present"
|
||||
force: true
|
||||
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
# install repository - suse
|
||||
- name: "install repository"
|
||||
when: 'ansible_os_family == "Suse"'
|
||||
when: 'ansible_facts["os_family"] == "Suse"'
|
||||
block:
|
||||
|
||||
- name: "remove old zabbix-release"
|
||||
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
- name: "install zabbix-release"
|
||||
ansible.builtin.zypper:
|
||||
name: "{{ zabbix_repo_url[ansible_distribution_major_version | int] }}"
|
||||
name: "{{ zabbix_repo_url[ansible_facts['distribution_major_version'] | int] }}"
|
||||
state: "present"
|
||||
disable_recommends: false
|
||||
nosignature: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue