Fixed some syntax problems in yml
This commit is contained in:
@@ -7,12 +7,12 @@
|
||||
tasks:
|
||||
- name: Download Zabbix release package
|
||||
ansible.builtin.get_url:
|
||||
url: "https://repo.zabbix.com/zabbix/7.4/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.4+ubuntu24.04_all.deb
|
||||
dest: /tmp/zabbix-7.4.deb
|
||||
url: "https://repo.zabbix.com/zabbix/7.4/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.4+ubuntu24.04_all.deb"
|
||||
dest: /tmp/zabbix-release.deb
|
||||
|
||||
- name: Install Zabbix release package
|
||||
ansible.builtin.apt:
|
||||
deb: /tmp/zabbix-7.4.deb
|
||||
deb: /tmp/zabbix-release.deb
|
||||
|
||||
- name: Install Zabbix proxy
|
||||
ansible.builtin.apt:
|
||||
@@ -42,13 +42,13 @@
|
||||
content: |
|
||||
Server={{ zabbix_server_address }}:10051
|
||||
Hostname={{ ansible_facts.hostname }}
|
||||
TLSPSKFile=/etc/zabbix/{{ ansible_facts.hostname }}.psk
|
||||
TLSPSKFile="/etc/zabbix/{{ ansible_facts.hostname }}.psk"
|
||||
TLSPSKIdentity={{ zabbix_psk_identity }}
|
||||
notify: restart zabbix-proxy
|
||||
|
||||
- name: Create Zabbix proxy PSK file
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/zabbix/{{ ansible_facts.hostname }}.psk
|
||||
dest: "/etc/zabbix/{{ ansible_facts.hostname }}.psk"
|
||||
content: "{{ zabbix_proxy_psk }}"
|
||||
owner: zabbix
|
||||
group: zabbix
|
||||
@@ -74,4 +74,4 @@
|
||||
that:
|
||||
- "ansible_facts.services['zabbix-proxy.service'].state == 'running'"
|
||||
fail_msg: "Zabbix proxy is not running"
|
||||
success_msg: "Zabbix proxy is running"
|
||||
success_msg: "Zabbix proxy is running"
|
||||
|
||||
Reference in New Issue
Block a user