diff --git a/roles/mariadb/tasks/main.yml b/roles/mariadb/tasks/main.yml index 622cededcc74681f3eeb40a29e2d7e7b77d1483b..fd9ce225793ebd36682764d97f070fa3fdf09a79 100644 --- a/roles/mariadb/tasks/main.yml +++ b/roles/mariadb/tasks/main.yml @@ -40,9 +40,8 @@ no_log: true - name: configure zabbix-agent user + # FIXME: "zabbix_agent" is hardcoded in the password variable: {{ vault_mariadb_users.zabbix_agent }} + # NOTE: the zabbix-agent role uses {{zabbix_agent_mysql_password}} in the my.cnf.j2 template mysql_user: user={{ zabbix_agent_mysql_user }} host=localhost password={{ vault_mariadb_users.zabbix_agent }} # TODO: implement in ansible: grant process on *.* to 'zabbix_agent'@'localhost'; - -- name: install zabbix mysql config - template: src=zabbix_agentd.my.cnf.j2 dest=/etc/zabbix/zabbix_agentd.my.cnf owner=zabbix-agent group=zabbix-agent mode=0600 diff --git a/roles/mariadb/templates/zabbix_agentd.my.cnf.j2 b/roles/mariadb/templates/zabbix_agentd.my.cnf.j2 deleted file mode 100644 index 708cc4548e5c6c4cfe43b264fcec925c52ecbcad..0000000000000000000000000000000000000000 --- a/roles/mariadb/templates/zabbix_agentd.my.cnf.j2 +++ /dev/null @@ -1,3 +0,0 @@ -[client] -user={{zabbix_agent_mysql_user}} -password={{vault_mariadb_users.zabbix_agent}}