In this example we are going to update MySQL root user’s password, grant all privileges for all hosts by using Ansible and Vagrant.

Structure

.
├── Vagrantfile
└── provisioning
    ├── host_vars
    │   └── mysql
    ├── hosts.yml
    ├── roles
    │   └── mysql
    │       ├── handlers
    │       │   └── main.yml
    │       └── tasks
    │           └── main.yml
    └── site.yml

#ansible #mysql #vagrant

Setting up MySQL root user with Ansible and Vagrant
1.25 GEEK