diff --git a/roles/database_server/tasks/main.yml b/roles/database_server/tasks/main.yml index d8d2d090760c255608a2012d4d35ec682ce17d98..7ea641346446fe5953ee863e08b7d26fc2a9b0af 100644 --- a/roles/database_server/tasks/main.yml +++ b/roles/database_server/tasks/main.yml @@ -1,7 +1,7 @@ --- - name: Install MariaDB - apt: + ansible.builtin.apt: name: - mariadb-client - mariadb-server @@ -9,13 +9,13 @@ state: present - name: Enable and start MariaDB - service: + ansible.builtin.service: name: mysql state: started enabled: true - name: Set UTF-8 encoding as default for MariaDB - template: + ansible.builtin.template: src: "utf8.cnf.j2" dest: "/etc/mysql/mariadb.conf.d/90-utf8.cnf" owner: root @@ -28,13 +28,13 @@ # UTF-8 configuration must be applied immediatelly in order to ensure that # subsequent tasks that create databases will end-up with correct (UTF-8) # encoding. Otherwise they will be created using default latin1. - service: + ansible.builtin.service: name: mysql state: restarted when: mariadb_utf8_configuration.changed - name: Explicitly run all handlers - include_tasks: ../handlers/main.yml + ansible.builtin.include_tasks: ../handlers/main.yml when: "run_handlers | default(False) | bool()" tags: - handlers