【发布时间】:2015-08-25 20:26:53
【问题描述】:
我是ansible的新手,我需要在服务器上安装mysql,因为我写了一个剧本
---
- hosts: webservice
tasks:
- name: Install MYSQL Server
apt: name=mysql-server update_cache=yes state=latest
- name: Install MYSQL Client
apt: name=mysql-client update_cache=yes state=latest
它安装成功,但是我想写一个提到mysql root密码的ansible playbook,我该怎么做。
【问题讨论】:
标签: mysql ansible ansible-playbook