23 lines
623 B
YAML
23 lines
623 B
YAML
---
|
|
|
|
# load variables and collect version information
|
|
- name: "include vars and collect versions"
|
|
block:
|
|
|
|
# collect zabbix-web version information
|
|
- name: "collect version information"
|
|
ansible.builtin.shell:
|
|
cmd: "apt list zabbix-apache-conf | head -n 2"
|
|
changed_when: false
|
|
failed_when: false
|
|
ignore_errors: true
|
|
register: "zabbix_web_current_version"
|
|
|
|
|
|
# zabbix-web-server install
|
|
- name: "zabbix-web-server install"
|
|
ansible.builtin.import_tasks: "install.yaml"
|
|
|
|
# zabbix-web-server config
|
|
- name: "zabbix-web-server config"
|
|
ansible.builtin.import_tasks: "config.yaml"
|