ansible_playbooks/roles/different_need_soft_install/tasks/zabbix_install.yml
2026-02-24 11:30:35 +03:00

15 lines
444 B
YAML
Executable file

---
- name: Pull and run Zabbix Agent container
community.docker.docker_container:
name: zabbix-agent-{{ zabbix_version }}
image: zabbix/zabbix-agent:{{ zabbix_version }}-ubuntu-latest
state: started
restart_policy: always
env:
ZBX_SERVER_HOST: "{{ zabbix_server }}"
ZBX_LISTENPORT: "{{ zabbix_port }}"
ZBX_HOSTNAMEITEM: "{{ zabbix_hostname }}"
ports:
- "10050:10050"
ignore_errors: true
...