Zabbix-stg: bump collection to 3.3.0 and re-enable user
This commit is contained in:
parent
dc1b09121b
commit
0e60fc6eaf
2 changed files with 26 additions and 28 deletions
|
@ -8,7 +8,7 @@ roles:
|
|||
collections:
|
||||
# Needed for Zabbix playbooks
|
||||
- name: community.zabbix
|
||||
version: 3.0.0
|
||||
version: 3.3.0
|
||||
# Needed for copr
|
||||
- name: amazon.aws
|
||||
version: 4.1.0
|
||||
|
|
|
@ -65,33 +65,31 @@
|
|||
- zabbix_configuration
|
||||
- zabbix_triggers
|
||||
|
||||
# Breaks on second run with community.zabbix < 3.3.0
|
||||
# See https://github.com/ansible-collections/community.zabbix/commit/8a962bfc046353db60a594ddc259fae396fc20a9
|
||||
# Revisit after freeze is over - don't delete the user or the next task will fail
|
||||
# - name: Create a new Zabbix user for Matrix triggers
|
||||
# community.zabbix.zabbix_user:
|
||||
# username: matrix-bot
|
||||
# name: Matrix
|
||||
# surname: Bot
|
||||
# usrgrps:
|
||||
# - Zabbix administrators
|
||||
# passwd: "{{ (env == 'staging') | ternary(zabbix_stg_botuser_pwd, zabbix_botuser_pwd) }}"
|
||||
# user_medias:
|
||||
# - mediatype: Matrix
|
||||
# sendto: "{{ (env == 'staging') | ternary(zabbix_stg_matrix_roomid, zabbix_matrix_roomid) }}"
|
||||
# period: 1-7,00:00-24:00
|
||||
# severity:
|
||||
# not_classified: yes
|
||||
# information: yes
|
||||
# warning: yes
|
||||
# average: yes
|
||||
# high: yes
|
||||
# disaster: yes
|
||||
# active: yes
|
||||
# state: present
|
||||
# tags:
|
||||
# - zabbix_configuration
|
||||
# - zabbix_users
|
||||
- name: Create a new Zabbix user for Matrix triggers
|
||||
community.zabbix.zabbix_user:
|
||||
username: matrix-bot
|
||||
name: Matrix
|
||||
surname: Bot
|
||||
role_name: Super admin role # needed to allow notifications without lots of config around usergroups
|
||||
usrgrps:
|
||||
- Zabbix administrators
|
||||
passwd: "{{ (env == 'staging') | ternary(zabbix_stg_botuser_pwd, zabbix_botuser_pwd) }}"
|
||||
user_medias:
|
||||
- mediatype: Matrix
|
||||
sendto: "{{ (env == 'staging') | ternary(zabbix_stg_matrix_roomid, zabbix_matrix_roomid) }}"
|
||||
period: 1-7,00:00-24:00
|
||||
severity:
|
||||
not_classified: yes
|
||||
information: yes
|
||||
warning: yes
|
||||
average: yes
|
||||
high: yes
|
||||
disaster: yes
|
||||
active: yes
|
||||
state: present
|
||||
tags:
|
||||
- zabbix_configuration
|
||||
- zabbix_users
|
||||
|
||||
- name: Send alerts to Matrix
|
||||
community.zabbix.zabbix_action:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue