摘要: 添加mysql的用户和权限、密码 新增mysql用户zhang,设置登录密码zhang,给予权限zabbix.*:ALL ansible dba -m mysql_user -a 'login_host=localhost login_password=123456 login_user=root 阅读全文
posted @ 2018-04-06 19:05 划得戳 阅读(2559) 评论(0) 推荐(0)
摘要: 第一种:新增用户 ansible host -m user -a "name=zhang shell=/bin/bash groups=admin,root append=yes home=/home/zhang state=present" name:新增用户名字 shell:用户的shell g 阅读全文
posted @ 2018-04-06 17:57 划得戳 阅读(1018) 评论(0) 推荐(0)