refactor: standardize tasks’ name

This commit is contained in:
VC
2024-07-05 11:53:35 +02:00
parent 788dfae081
commit 85f0f91887
36 changed files with 114 additions and 138 deletions

View File

@@ -19,14 +19,14 @@
creates: /srv/mysql/ibdata1
notify: Restart mariadb
- name: Replace conffile
- name: Put mariadb configuration file
ansible.builtin.template:
src: 50-server.cnf.j2
dest: /etc/mysql/mariadb.conf.d/50-server.cnf
mode: 0644
notify: Restart mariadb
- name: Debian upgrade file conf
- name: Upgrade debian configuration file
ansible.builtin.template:
src: debian.cnf.j2
dest: /etc/mysql/debian.cnf
@@ -48,7 +48,7 @@
path: /root/.my.cnf
register: dot_my_cnf
- name: Root password
- name: Set root password
community.mysql.mysql_user:
login_unix_socket: "/var/run/mysqld/mysqld.sock"
host: localhost
@@ -62,7 +62,7 @@
dest: ~/.my.cnf
mode: '0600'
- name: Root password (follow-up)
- name: Set root password (follow-up)
community.mysql.mysql_user:
login_user: root
host: "{{ item }}"
@@ -73,7 +73,7 @@
- "127.0.0.1"
- "::1"
- name: Scripted version of mysql_secure_installation
- name: Exec scripted version of mysql_secure_installation
ansible.builtin.command:
cmd: "{{ item }}"
creates: ~/mysql_secure_installation