ansible-role-mysql/tasks/main.yml

21 lines
784 B
YAML

---
- name: Install the mysql/mariadb packages
ansible.builtin.import_tasks: packages.yml
- name: Configure mysql/mariadb
ansible.builtin.import_tasks: mysql-conf.yml
when: mysql_enabled | bool
- name: Manage the mysql/mariadb service
ansible.builtin.import_tasks: manage-mysql-service.yml
- name: Configure the root user
ansible.builtin.import_tasks: configure_root_access.yml
when: mysql_enabled | bool
- name: Eventually manage databases
ansible.builtin.import_tasks: manage_my_db.yml
when: mysql_enabled | bool
- name: Configure a basic backup service
ansible.builtin.import_tasks: mysql-backup.yml
when: mysql_enabled | bool
- name: Configure for letsencrypt
ansible.builtin.import_tasks: mysql-letsencrypt.yml
when: mysql_letsencrypt_certificates | bool