├── .config └── ansible-lint.yml ├── .github └── workflows │ ├── ci.yml │ ├── galaxy.yml │ └── molecule.yml ├── .gitignore ├── .yamllint.yml ├── LICENSE ├── README.md ├── defaults └── main.yml ├── handlers └── main.yml ├── meta └── main.yml ├── molecule ├── _shared │ ├── Dockerfile.j2 │ ├── base.yml │ ├── files │ │ └── import1.sql │ ├── inventory │ │ └── group_vars │ │ │ ├── all.yml │ │ │ ├── galera.yml │ │ │ ├── master.yml │ │ │ ├── slave.yml │ │ │ └── upstream.yml │ ├── prepare.yml │ └── tools │ │ └── install-dependencies.sh ├── debian12_galera │ ├── converge.yml │ ├── molecule.yml │ └── verify.yml ├── debian12_master_slave │ ├── converge.yml │ ├── molecule.yml │ └── verify.yml └── debian12_upstream │ ├── converge.yml │ ├── molecule.yml │ └── verify.yml ├── requirements.txt ├── requirements.yml ├── tasks ├── galera │ ├── bootstrap.yml │ └── main.yml ├── install │ ├── main.yml │ └── mariadb │ │ ├── default.yml │ │ └── upstream.yml ├── main.yml ├── replication │ ├── main.yml │ ├── master.yml │ ├── slave.yml │ └── slave │ │ ├── gtid.yml │ │ └── import_data.yml └── secure.yml ├── templates └── etc │ ├── apt │ └── preferences.d │ │ └── 95-mariadb.j2 │ ├── logrotate.d │ └── mysql-server.j2 │ └── mysql │ ├── conf.d │ └── mysqldump.cnf.j2 │ └── mariadb.conf.d │ ├── 10-extra.cnf.j2 │ ├── 40-master.cnf.j2 │ ├── 40-slave.cnf.j2 │ ├── 50-server.cnf.j2 │ └── 60-galera.cnf.j2 └── vars ├── Debian-buster.yml ├── default.yml └── main.yml /.config/ansible-lint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/.config/ansible-lint.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/galaxy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/.github/workflows/galaxy.yml -------------------------------------------------------------------------------- /.github/workflows/molecule.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/.github/workflows/molecule.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | *.retry 3 | /.idea 4 | /venv 5 | -------------------------------------------------------------------------------- /.yamllint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/.yamllint.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/README.md -------------------------------------------------------------------------------- /defaults/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/defaults/main.yml -------------------------------------------------------------------------------- /handlers/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/handlers/main.yml -------------------------------------------------------------------------------- /meta/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/meta/main.yml -------------------------------------------------------------------------------- /molecule/_shared/Dockerfile.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/molecule/_shared/Dockerfile.j2 -------------------------------------------------------------------------------- /molecule/_shared/base.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/molecule/_shared/base.yml -------------------------------------------------------------------------------- /molecule/_shared/files/import1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/molecule/_shared/files/import1.sql -------------------------------------------------------------------------------- /molecule/_shared/inventory/group_vars/all.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/molecule/_shared/inventory/group_vars/all.yml -------------------------------------------------------------------------------- /molecule/_shared/inventory/group_vars/galera.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/molecule/_shared/inventory/group_vars/galera.yml -------------------------------------------------------------------------------- /molecule/_shared/inventory/group_vars/master.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/molecule/_shared/inventory/group_vars/master.yml -------------------------------------------------------------------------------- /molecule/_shared/inventory/group_vars/slave.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/molecule/_shared/inventory/group_vars/slave.yml -------------------------------------------------------------------------------- /molecule/_shared/inventory/group_vars/upstream.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | mariadb_origin: 'upstream' 4 | -------------------------------------------------------------------------------- /molecule/_shared/prepare.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/molecule/_shared/prepare.yml -------------------------------------------------------------------------------- /molecule/_shared/tools/install-dependencies.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/molecule/_shared/tools/install-dependencies.sh -------------------------------------------------------------------------------- /molecule/debian12_galera/converge.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/molecule/debian12_galera/converge.yml -------------------------------------------------------------------------------- /molecule/debian12_galera/molecule.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/molecule/debian12_galera/molecule.yml -------------------------------------------------------------------------------- /molecule/debian12_galera/verify.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/molecule/debian12_galera/verify.yml -------------------------------------------------------------------------------- /molecule/debian12_master_slave/converge.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/molecule/debian12_master_slave/converge.yml -------------------------------------------------------------------------------- /molecule/debian12_master_slave/molecule.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/molecule/debian12_master_slave/molecule.yml -------------------------------------------------------------------------------- /molecule/debian12_master_slave/verify.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/molecule/debian12_master_slave/verify.yml -------------------------------------------------------------------------------- /molecule/debian12_upstream/converge.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/molecule/debian12_upstream/converge.yml -------------------------------------------------------------------------------- /molecule/debian12_upstream/molecule.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/molecule/debian12_upstream/molecule.yml -------------------------------------------------------------------------------- /molecule/debian12_upstream/verify.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/molecule/debian12_upstream/verify.yml -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/requirements.txt -------------------------------------------------------------------------------- /requirements.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/requirements.yml -------------------------------------------------------------------------------- /tasks/galera/bootstrap.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/tasks/galera/bootstrap.yml -------------------------------------------------------------------------------- /tasks/galera/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/tasks/galera/main.yml -------------------------------------------------------------------------------- /tasks/install/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/tasks/install/main.yml -------------------------------------------------------------------------------- /tasks/install/mariadb/default.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/tasks/install/mariadb/default.yml -------------------------------------------------------------------------------- /tasks/install/mariadb/upstream.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/tasks/install/mariadb/upstream.yml -------------------------------------------------------------------------------- /tasks/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/tasks/main.yml -------------------------------------------------------------------------------- /tasks/replication/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/tasks/replication/main.yml -------------------------------------------------------------------------------- /tasks/replication/master.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/tasks/replication/master.yml -------------------------------------------------------------------------------- /tasks/replication/slave.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/tasks/replication/slave.yml -------------------------------------------------------------------------------- /tasks/replication/slave/gtid.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/tasks/replication/slave/gtid.yml -------------------------------------------------------------------------------- /tasks/replication/slave/import_data.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/tasks/replication/slave/import_data.yml -------------------------------------------------------------------------------- /tasks/secure.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/tasks/secure.yml -------------------------------------------------------------------------------- /templates/etc/apt/preferences.d/95-mariadb.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/templates/etc/apt/preferences.d/95-mariadb.j2 -------------------------------------------------------------------------------- /templates/etc/logrotate.d/mysql-server.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/templates/etc/logrotate.d/mysql-server.j2 -------------------------------------------------------------------------------- /templates/etc/mysql/conf.d/mysqldump.cnf.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/templates/etc/mysql/conf.d/mysqldump.cnf.j2 -------------------------------------------------------------------------------- /templates/etc/mysql/mariadb.conf.d/10-extra.cnf.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/templates/etc/mysql/mariadb.conf.d/10-extra.cnf.j2 -------------------------------------------------------------------------------- /templates/etc/mysql/mariadb.conf.d/40-master.cnf.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/templates/etc/mysql/mariadb.conf.d/40-master.cnf.j2 -------------------------------------------------------------------------------- /templates/etc/mysql/mariadb.conf.d/40-slave.cnf.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/templates/etc/mysql/mariadb.conf.d/40-slave.cnf.j2 -------------------------------------------------------------------------------- /templates/etc/mysql/mariadb.conf.d/50-server.cnf.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/templates/etc/mysql/mariadb.conf.d/50-server.cnf.j2 -------------------------------------------------------------------------------- /templates/etc/mysql/mariadb.conf.d/60-galera.cnf.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/templates/etc/mysql/mariadb.conf.d/60-galera.cnf.j2 -------------------------------------------------------------------------------- /vars/Debian-buster.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | mariadb_default_service_name: 'mysql' 4 | -------------------------------------------------------------------------------- /vars/default.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/vars/default.yml -------------------------------------------------------------------------------- /vars/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-mysql/HEAD/vars/main.yml --------------------------------------------------------------------------------