Ansible剧本,用于授予特权并将其插入数据库

时间:2019-03-19 09:16:30

标签: ansible

我正在使用ansible来安装zabbix主服务器。我一直坚持提供授予特权(下面是我要运行的查询)

grant all privileges on zabbix.* to zabbix@'localhost' identified by 'password'; 
grant all privileges on zabbix.* to zabbix@'%' identified by 'password'; 
flush privileges;

这是通过连接到mariadb / mysql

和我卡住的另一个是

#cd /usr/share/doc/zabbix-server-mysql-*/ -- here i will be directly downloading the it so i don't have idea how this work as when i trying to do the above in the yml it is throwing below error
{"changed": false, "msg": "Source '/tmp/folder-*/folder.tar.gz' does not exist"}

下面是我遇到的另一个问题(在这里我将提取并插入数据库

#mysql -u root -p zabbix < create.sql 
Enter password:

请帮助我解决此问题

0 个答案:

没有答案