28 lines
670 B
YAML
28 lines
670 B
YAML
---
|
|
|
|
# load variables and collect version information
|
|
- name: "include vars and collect versions"
|
|
block:
|
|
|
|
# collect zabbix-proxy version information
|
|
- name: "collect version information"
|
|
ansible.builtin.shell:
|
|
cmd: "zabbix_proxy --version | head -n 1"
|
|
changed_when: false
|
|
failed_when: false
|
|
ignore_errors: true
|
|
register: "zabbix_current_version"
|
|
|
|
|
|
# zabbix-proxy install
|
|
- name: "zabbix-proxy install"
|
|
ansible.builtin.import_tasks: "install.yaml"
|
|
tags:
|
|
- "zabbix_proxy_install"
|
|
|
|
|
|
# zabbix-proxy config
|
|
- name: "zabbix-proxy config"
|
|
ansible.builtin.import_tasks: "config.yaml"
|
|
tags:
|
|
- "zabbix_proxy_config"
|