Zabbix-stg: bump collection to 3.3.0 and re-enable user

This commit is contained in:
Greg Sutcliffe 2025-04-24 17:21:21 +01:00 committed by kevin
parent dc1b09121b
commit 0e60fc6eaf
2 changed files with 26 additions and 28 deletions

View file

@ -8,7 +8,7 @@ roles:
collections: collections:
# Needed for Zabbix playbooks # Needed for Zabbix playbooks
- name: community.zabbix - name: community.zabbix
version: 3.0.0 version: 3.3.0
# Needed for copr # Needed for copr
- name: amazon.aws - name: amazon.aws
version: 4.1.0 version: 4.1.0

View file

@ -65,33 +65,31 @@
- zabbix_configuration - zabbix_configuration
- zabbix_triggers - zabbix_triggers
# Breaks on second run with community.zabbix < 3.3.0 - name: Create a new Zabbix user for Matrix triggers
# See https://github.com/ansible-collections/community.zabbix/commit/8a962bfc046353db60a594ddc259fae396fc20a9 community.zabbix.zabbix_user:
# Revisit after freeze is over - don't delete the user or the next task will fail username: matrix-bot
# - name: Create a new Zabbix user for Matrix triggers name: Matrix
# community.zabbix.zabbix_user: surname: Bot
# username: matrix-bot role_name: Super admin role # needed to allow notifications without lots of config around usergroups
# name: Matrix usrgrps:
# surname: Bot - Zabbix administrators
# usrgrps: passwd: "{{ (env == 'staging') | ternary(zabbix_stg_botuser_pwd, zabbix_botuser_pwd) }}"
# - Zabbix administrators user_medias:
# passwd: "{{ (env == 'staging') | ternary(zabbix_stg_botuser_pwd, zabbix_botuser_pwd) }}" - mediatype: Matrix
# user_medias: sendto: "{{ (env == 'staging') | ternary(zabbix_stg_matrix_roomid, zabbix_matrix_roomid) }}"
# - mediatype: Matrix period: 1-7,00:00-24:00
# sendto: "{{ (env == 'staging') | ternary(zabbix_stg_matrix_roomid, zabbix_matrix_roomid) }}" severity:
# period: 1-7,00:00-24:00 not_classified: yes
# severity: information: yes
# not_classified: yes warning: yes
# information: yes average: yes
# warning: yes high: yes
# average: yes disaster: yes
# high: yes active: yes
# disaster: yes state: present
# active: yes tags:
# state: present - zabbix_configuration
# tags: - zabbix_users
# - zabbix_configuration
# - zabbix_users
- name: Send alerts to Matrix - name: Send alerts to Matrix
community.zabbix.zabbix_action: community.zabbix.zabbix_action: