Files
@ 19020779a000
Branch filter:
Location: majic-ansible-roles/roles/database_server/tasks/main.yml - annotation
19020779a000
1.1 KiB
text/x-yaml
MAR-108: Implemented initial boilerplate for backup_client tests:
- Fixed backup_client role handling of encryption keys.
- Fixed backup server URI (had too many forward slashes).
- Added Molecule instance configuration file for backup server, one backup
client for testing mandatory parameters, and one backup client for testing
optional parameters.
- Implemented playbook for setting-up the test instances.
- Added test data (SSH, GnuPG keys).
- Added dummy (stock) Molecule test file.
- Fixed backup_client role handling of encryption keys.
- Fixed backup server URI (had too many forward slashes).
- Added Molecule instance configuration file for backup server, one backup
client for testing mandatory parameters, and one backup client for testing
optional parameters.
- Implemented playbook for setting-up the test instances.
- Added test data (SSH, GnuPG keys).
- Added dummy (stock) Molecule test file.
09625826d96f 09625826d96f 09625826d96f 09625826d96f 09625826d96f 09625826d96f 09625826d96f 09625826d96f 09625826d96f a561d73e3242 a561d73e3242 a561d73e3242 a561d73e3242 a561d73e3242 09625826d96f a561d73e3242 09625826d96f 09625826d96f 09625826d96f 09625826d96f 09625826d96f 09625826d96f 09625826d96f 09625826d96f 09625826d96f 09625826d96f 09625826d96f 19b15357124a 19b15357124a 19b15357124a 19b15357124a 19b15357124a 7387caca37f3 7387caca37f3 7387caca37f3 7387caca37f3 7387caca37f3 7387caca37f3 | ---
- name: Install MariaDB
apt: name="{{ item }}" state=installed
with_items:
- mariadb-client
- mariadb-server
- python-mysqldb
- name: Enable MariaDB service on boot (workaround for systemctl broken handling of SysV)
command: rcconf -on mysql
register: result
changed_when: result.stderr == ""
- name: Enable and start MariaDB
service: name=mysql state=started
- name: Set password for the root database user
mysql_user: check_implicit_admin=yes name=root password="{{ db_root_password }}"
- name: Deploy username and password for the root database user
template: src="root_my.cnf.j2" dest="/root/.my.cnf"
owner=root group=root mode=400
- name: Set UTF-8 encoding as default for MariaDB
copy: src="utf8.cnf" dest="/etc/mysql/conf.d/utf8.cnf"
owner=root group=root mode=644
register: mariadb_utf8_configuration
- name: Restart MariaDB in order to use UTF-8 as default character set
service: name=mysql state=restarted
when: mariadb_utf8_configuration.changed
- name: Explicitly run all handlers
include: ../handlers/main.yml
when: "handlers | default(False) | bool() == True"
tags:
- handlers
|