Skip to content

Commit fbda3da

Browse files
author
Sebastian Gumprich
committed
add fcqn to all mysql tasks
Signed-off-by: Sebastian Gumprich <[email protected]>
1 parent 45e4e87 commit fbda3da

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

tasks/databases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
- name: Ensure MySQL databases are present.
3-
mysql_db:
3+
community.mysql.mysql_db:
44
name: "{{ item.name }}"
55
collation: "{{ item.collation | default('utf8_general_ci') }}"
66
encoding: "{{ item.encoding | default('utf8') }}"

tasks/replication.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
- name: Ensure replication user exists on master.
3-
mysql_user:
3+
community.mysql.mysql_user:
44
name: "{{ mysql_replication_user.name }}"
55
host: "{{ mysql_replication_user.host | default('%') }}"
66
login_unix_socket: "{{ login_unix_socket | default(omit) }}"
@@ -14,7 +14,7 @@
1414
tags: ['skip_ansible_galaxy']
1515

1616
- name: Check slave replication status.
17-
mysql_replication:
17+
community.mysql.mysql_replication:
1818
mode: getslave
1919
login_user: "{{ mysql_replication_user.name }}"
2020
login_password: "{{ mysql_replication_user.password }}"
@@ -27,7 +27,7 @@
2727
tags: ['skip_ansible_galaxy']
2828

2929
- name: Check master replication status.
30-
mysql_replication:
30+
community.mysql.mysql_replication:
3131
mode: getmaster
3232
login_unix_socket: "{{ login_unix_socket | default(omit) }}"
3333
delegate_to: "{{ mysql_replication_master }}"
@@ -39,7 +39,7 @@
3939
tags: ['skip_ansible_galaxy']
4040

4141
- name: Configure replication on the slave.
42-
mysql_replication:
42+
community.mysql.mysql_replication:
4343
mode: changemaster
4444
master_host: "{{ mysql_replication_master }}"
4545
master_user: "{{ mysql_replication_user.name }}"
@@ -55,7 +55,7 @@
5555
- (mysql_replication_master | length) > 0
5656

5757
- name: Start replication.
58-
mysql_replication:
58+
community.mysql.mysql_replication:
5959
mode: startslave
6060
login_unix_socket: "{{ login_unix_socket | default(omit) }}"
6161
when:

tasks/secure-installation.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
- name: Ensure default user is present.
3-
mysql_user:
3+
community.mysql.mysql_user:
44
name: "{{ mysql_user_name }}"
55
host: 'localhost'
66
password: "{{ mysql_user_password }}"
@@ -77,15 +77,15 @@
7777
check_mode: false
7878

7979
- name: Remove anonymous MySQL users.
80-
mysql_user:
80+
community.mysql.mysql_user:
8181
name: ""
8282
host: "{{ item }}"
8383
login_unix_socket: "{{ login_unix_socket | default(omit) }}"
8484
state: absent
8585
with_items: "{{ mysql_anonymous_hosts.stdout_lines|default([]) }}"
8686

8787
- name: Remove MySQL test database.
88-
mysql_db:
88+
community.mysql.mysql_db:
8989
name: "test"
9090
login_unix_socket: "{{ login_unix_socket | default(omit) }}"
9191
state: absent

tasks/users.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
- name: Ensure MySQL users are present.
3-
mysql_user:
3+
community.mysql.mysql_user:
44
name: "{{ item.name }}"
55
host: "{{ item.host | default('localhost') }}"
66
password: "{{ item.password }}"

0 commit comments

Comments
 (0)