Role to deploy a mariadb cluster in docker in Centos/RHEL 7
Needs docker,docker-py installed in the hosts
image_name: "mariadb:10.3"
mysql_root_pass: "mysqlr00tp4ss"
mariadb_data_dir: /var/lib/mysql
docker_api_version: 1.22
users:
- name: username
pass: pass
databases:
- test_db
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- role: ansible-mariadb-docker
mariadb_cluster_enabled: false # true by default
users:
- user: test_user
pass: test_pass
databases:
- test_database
BSD
An optional section for the role authors to include contact information, or a website (HTML is not allowed).