Fixed some syntax problems in yml
This commit is contained in:
@@ -7,12 +7,12 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Download Zabbix release package
|
- name: Download Zabbix release package
|
||||||
ansible.builtin.get_url:
|
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
|
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
|
dest: /tmp/zabbix-release.deb
|
||||||
|
|
||||||
- name: Install Zabbix release package
|
- name: Install Zabbix release package
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
deb: /tmp/zabbix-7.4.deb
|
deb: /tmp/zabbix-release.deb
|
||||||
|
|
||||||
- name: Install Zabbix proxy
|
- name: Install Zabbix proxy
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
@@ -42,13 +42,13 @@
|
|||||||
content: |
|
content: |
|
||||||
Server={{ zabbix_server_address }}:10051
|
Server={{ zabbix_server_address }}:10051
|
||||||
Hostname={{ ansible_facts.hostname }}
|
Hostname={{ ansible_facts.hostname }}
|
||||||
TLSPSKFile=/etc/zabbix/{{ ansible_facts.hostname }}.psk
|
TLSPSKFile="/etc/zabbix/{{ ansible_facts.hostname }}.psk"
|
||||||
TLSPSKIdentity={{ zabbix_psk_identity }}
|
TLSPSKIdentity={{ zabbix_psk_identity }}
|
||||||
notify: restart zabbix-proxy
|
notify: restart zabbix-proxy
|
||||||
|
|
||||||
- name: Create Zabbix proxy PSK file
|
- name: Create Zabbix proxy PSK file
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
dest: /etc/zabbix/{{ ansible_facts.hostname }}.psk
|
dest: "/etc/zabbix/{{ ansible_facts.hostname }}.psk"
|
||||||
content: "{{ zabbix_proxy_psk }}"
|
content: "{{ zabbix_proxy_psk }}"
|
||||||
owner: zabbix
|
owner: zabbix
|
||||||
group: zabbix
|
group: zabbix
|
||||||
@@ -74,4 +74,4 @@
|
|||||||
that:
|
that:
|
||||||
- "ansible_facts.services['zabbix-proxy.service'].state == 'running'"
|
- "ansible_facts.services['zabbix-proxy.service'].state == 'running'"
|
||||||
fail_msg: "Zabbix proxy is not 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