Ansible Role that installs an configure MySQL on Debian/Ubuntu.
Use hash behavior for variables in ansible.cfg See example: https://github.com/Aplyca/ansible-role-mysql/blob/master/tests/ansible.cfg See official docs: http://docs.ansible.com/intro_configuration.html#hash-behaviour
Using ansible galaxy:
ansible-galaxy install aplyca.MySQL
You can add this role as a dependency for other roles, add the role to the meta/main.yml file of your own role:
dependencies:
- { role: aplyca.MySQL }
Use merge
hash behaviour for variables like dictionaries in Python. You can set this configuration by adding the setting hash_behaviour=merge
to the ansible.cfg
file which should be placed in the same directory where you are executing ansible-playbook command. See the docs for more info: http://docs.ansible.com/ansible/intro_configuration.html#hash-behaviour or see the example here: https://github.com/Aplyca/ansible-role-mysql/blob/master/ansible.cfg
See default variables: https://github.com/Aplyca/ansible-role-mysql/blob/master/defaults/main.yml
None.
- You can use Vagrant to set up and provision a VM in order to run tests.
- To know more about Vagrant: http://www.vagrantup.com And Vagrant with Ansible: http://docs.vagrantup.com/v2/provisioning/ansible.html
tests/vagrant.sh
tests/docker.sh