diff --git a/inventories/host_vars/zabbix.yml b/inventories/host_vars/zabbix.yml index ec32e0e..b87c730 100644 --- a/inventories/host_vars/zabbix.yml +++ b/inventories/host_vars/zabbix.yml @@ -31,7 +31,7 @@ mysql: 66386636663933326161326664333461653438666532383837336635353135646436626264356231 6137653136333163350a386331343065333362643462666531666230343831333334656237393835 37373864646235333261396335383236363262613533343436326564656334336632 - zabbix_db_password: !vault | + zabbix_user_password: !vault | $ANSIBLE_VAULT;1.1;AES256 61656531353564373736616363636663303133306239613438623361663430396262393237333235 3938353366326666353033636237653237343763623261310a386232623333376431303835656162 diff --git a/tasks/zabbix/install_mysql.yml b/tasks/zabbix/install_mysql.yml index c74ce27..74bda96 100644 --- a/tasks/zabbix/install_mysql.yml +++ b/tasks/zabbix/install_mysql.yml @@ -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"