zabbix-web/tasks/install.yaml
Simon Cornet 9cd067fc9e
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
chore: migrate bare ansible_* facts to ansible_facts[] syntax
2026-05-19 09:19:10 +02:00

31 lines
853 B
YAML

---
# install zabbix-web
- name: "install zabbix-web"
when: "zabbix_major_version not in zabbix_web_current_version.stdout"
block:
# install zabbix-web - debian
- name: "install zabbix-web"
when: 'ansible_facts["os_family"] == "Debian"'
block:
# remove old zabbix-web
- name: "remove old zabbix-web"
ansible.builtin.apt:
name: "{{ item }}"
state: "absent"
loop:
- "zabbix-frontend-php"
- "zabbix-apache-conf"
# install zabbix-web
- name: "install zabbix-web"
ansible.builtin.apt:
name: "{{ item }}"
state: "present"
update_cache: true
when: 'ansible_facts["os_family"] == "Debian"'
loop:
- "zabbix-frontend-php"
- "zabbix-apache-conf"