15 lines
444 B
YAML
Executable file
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
|
|
...
|