mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-07-10 02:35:50 +02:00
klal
This commit is contained in:
@ -30,9 +30,9 @@
|
|||||||
# dest: /tmp/
|
# dest: /tmp/
|
||||||
- name: Install a .deb package from the internet111
|
- name: Install a .deb package from the internet111
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
deb: https://repo.zabbix.com/zabbix/7.2/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.2+ubuntu24.04_all.deb
|
deb: hhttps://repo.zabbix.com/zabbix/7.4/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.4+ubuntu24.04_all.deb
|
||||||
when:
|
when:
|
||||||
- ansible_facts.architecture != "armv7l" and ( ansible_distribution == "Ubuntu1" or ansible_distribution == "Linux Mint" )
|
- ansible_facts.architecture != "armv7l" and ( ansible_distribution == "Ubuntu" or ansible_distribution == "Linux Mint" )
|
||||||
|
|
||||||
- name: Install a .deb package from the internet2
|
- name: Install a .deb package from the internet2
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
@ -54,7 +54,7 @@
|
|||||||
- name: Install a .deb package from the internet4
|
- name: Install a .deb package from the internet4
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
# deb: https://repo.zabbix.com/zabbix/6.4/debian/pool/main/z/zabbix-release/zabbix-release_6.4-1+debian12_all.deb
|
# deb: https://repo.zabbix.com/zabbix/6.4/debian/pool/main/z/zabbix-release/zabbix-release_6.4-1+debian12_all.deb
|
||||||
deb: https://repo.zabbix.com/zabbix/7.0/debian/pool/main/z/zabbix-release/zabbix-release_7.0-1+debian12_all.deb
|
deb: https://repo.zabbix.com/zabbix/7.4/release/debian/pool/main/z/zabbix-release/zabbix-release_latest_7.4+debian12_all.deb
|
||||||
when:
|
when:
|
||||||
- ansible_facts.architecture != "armv7l"
|
- ansible_facts.architecture != "armv7l"
|
||||||
- ansible_facts.architecture != "aarch64"
|
- ansible_facts.architecture != "aarch64"
|
||||||
@ -74,7 +74,7 @@
|
|||||||
# - zabbix-agent2-plugin-mysql
|
# - zabbix-agent2-plugin-mysql
|
||||||
update_cache: true
|
update_cache: true
|
||||||
when: inventory_hostname != 'nas.home.lan'
|
when: inventory_hostname != 'nas.home.lan'
|
||||||
- name: Install zabbix packages
|
- name: Upgrade zabbix packages
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name:
|
name:
|
||||||
- zabbix-agent2
|
- zabbix-agent2
|
||||||
@ -110,7 +110,20 @@
|
|||||||
# regexp: "^ListenIP=.*"
|
# regexp: "^ListenIP=.*"
|
||||||
# line: "ListenIP=0.0.0.0"
|
# line: "ListenIP=0.0.0.0"
|
||||||
|
|
||||||
|
- name: Reconfigure zabbix-agent2 HeartbeatFrequency
|
||||||
|
ansible.builtin.lineinfile:
|
||||||
|
path: "{{ zabbix_agent_cfg }}"
|
||||||
|
insertafter: '^# HeartbeatFrequency='
|
||||||
|
regexp: "^HeartbeatFrequency=.*"
|
||||||
|
line: "HeartbeatFrequency=30"
|
||||||
|
|
||||||
|
- name: Reconfigure zabbix-agent2 ForceActiveChecksOnStart
|
||||||
|
ansible.builtin.lineinfile:
|
||||||
|
path: "{{ zabbix_agent_cfg }}"
|
||||||
|
insertafter: '^# ForceActiveChecksOnStart='
|
||||||
|
regexp: "^ForceActiveChecksOnStart=.*"
|
||||||
|
line: "ForceActiveChecksOnStart=1"
|
||||||
|
#
|
||||||
- name: Reconfigure zabbix-agent2 hostname
|
- name: Reconfigure zabbix-agent2 hostname
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: "{{ zabbix_agent_cfg }}"
|
path: "{{ zabbix_agent_cfg }}"
|
||||||
|
Reference in New Issue
Block a user