Skip to content

Commit

Permalink
updated zabbix to 7.0 service terminates
Browse files Browse the repository at this point in the history
  • Loading branch information
XaverStiensmeier committed Jul 12, 2024
1 parent 44cb580 commit 5bde27e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 53 deletions.
4 changes: 2 additions & 2 deletions resources/playbook/roles/bibigrid/tasks/001-apt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@

- name: Add zabbix repositories
apt:
deb: "https://repo.zabbix.com/zabbix/6.2/{{ ansible_distribution | lower }}\
/pool/main/z/zabbix-release/zabbix-release_6.2-1%2B{{ ansible_distribution | lower }}\
deb: "https://repo.zabbix.com/zabbix/7.0/{{ ansible_distribution | lower }}\
/pool/main/z/zabbix-release/zabbix-release_7.0-2%2B{{ ansible_distribution | lower }}\
{{ ansible_distribution_version }}_all.deb"
state: present
force: true
Expand Down
51 changes: 0 additions & 51 deletions resources/playbook/roles/bibigrid/tasks/011-zabbix-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,54 +55,3 @@
name: zabbix-agent
state: started
enabled: true

# --------------------------------------
# -- Add worker node as zabbix hosts --
# --------------------------------------

- name: Add worker node to zabbix hosts
zabbix_host:
server_url: "http://127.0.0.1/zabbix/"
login_user: Admin
login_password: "{{ zabbix_conf.admin_password }}"
host_name: "{{ ansible_hostname }}"
visible_name: "{{ ansible_hostname }}"
description: add by ansible
status: enabled
state: present
host_groups:
- 'Linux servers'
link_templates:
- 'Linux by Zabbix Agent'
interfaces:
- type: 1 # agent
main: 1 # default
ip: "{{ ansible_default_ipv4.address }}"
useip: 1 # connect using host IP address
port: 10050
become: false
when: "'master' not in group_names"
delegate_to: localhost

- name: Add master node to zabbix hosts
zabbix_host:
server_url: "http://127.0.0.1/zabbix/"
login_user: Admin
login_password: "{{ zabbix_conf.admin_password }}"
host_name: "{{ ansible_hostname }}"
visible_name: "{{ ansible_hostname }}"
description: add by ansible
status: enabled
state: present
host_groups:
- 'Linux servers'
link_templates:
- 'Linux by Zabbix Agent'
interfaces:
- type: 1 # agent
main: 1 # default
ip: "127.0.0.1"
useip: 1 # connect using host IP address
port: 10050
become: false
when: "'master' in group_names"

0 comments on commit 5bde27e

Please sign in to comment.