Skip to content

Commit

Permalink
Add zabbix user for mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
cradle8810 committed Nov 3, 2024
1 parent d45c1b3 commit 5aa80d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion inventories/host_vars/zabbix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ mysql:
66386636663933326161326664333461653438666532383837336635353135646436626264356231
6137653136333163350a386331343065333362643462666531666230343831333334656237393835
37373864646235333261396335383236363262613533343436326564656334336632
zabbix_db_password: !vault |
zabbix_user_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
61656531353564373736616363636663303133306239613438623361663430396262393237333235
3938353366326666353033636237653237343763623261310a386232623333376431303835656162
Expand Down
7 changes: 7 additions & 0 deletions tasks/zabbix/install_mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,10 @@
mysql_bind_address: '0.0.0.0'
mysql_datadir: "{{ dbdir.dest }}"
mysql_hide_passwords: true
mysql_users:
- name: zabbix
host: "%"
password: "{{ mysql.zabbix_user_password }}"
encrypted: false
priv: "zabbix.*:ALL"
state: "present"

0 comments on commit 5aa80d2

Please sign in to comment.