File tree Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 26
26
group : root
27
27
mode : 0644
28
28
force : " {{ item.force | default(False) }}"
29
- with_items : mysql_config_include_files
29
+ with_items : " {{ mysql_config_include_files }} "
30
30
notify : restart mysql
31
31
32
32
- name : Create slow query log file (if configured).
Original file line number Diff line number Diff line change 5
5
collation : " {{ item.collation | default('utf8_general_ci') }}"
6
6
encoding : " {{ item.encoding | default('utf8') }}"
7
7
state : present
8
- with_items : mysql_databases
8
+ with_items : " {{ mysql_databases }} "
Original file line number Diff line number Diff line change 16
16
shell : >
17
17
mysql -u root -NBe
18
18
'SET PASSWORD FOR "{{ mysql_root_username }}"@"{{ item }}" = PASSWORD("{{ mysql_root_password }}");'
19
- with_items : mysql_root_hosts.stdout_lines
19
+ with_items : " {{ mysql_root_hosts.stdout_lines }} "
20
20
when : mysql_install_packages | bool or mysql_root_password_update
21
21
22
22
# Has to be after the root password assignment, for idempotency.
38
38
name : " "
39
39
host : " {{ item }}"
40
40
state : absent
41
- with_items : mysql_anonymous_hosts.stdout_lines
41
+ with_items : " {{ mysql_anonymous_hosts.stdout_lines }} "
42
42
43
43
- name : Remove MySQL test database.
44
44
mysql_db : " name='test' state=absent"
Original file line number Diff line number Diff line change 12
12
13
13
- name : Ensure MySQL packages are installed.
14
14
apt : " name={{ item }} state=installed"
15
- with_items : mysql_packages
15
+ with_items : " {{ mysql_packages }} "
16
16
register : deb_mysql_install_packages
17
17
18
18
# Because Ubuntu starts MySQL as part of the install process, we need to stop
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Ensure MySQL packages are installed.
3
3
yum : " name={{ item }} state=installed enablerepo={{ mysql_enablerepo }}"
4
- with_items : mysql_packages
4
+ with_items : " {{ mysql_packages }} "
5
5
register : rh_mysql_install_packages
6
6
7
7
- name : Ensure MySQL Python libraries are installed.
Original file line number Diff line number Diff line change 7
7
priv : " {{ item.priv | default('*.*:USAGE') }}"
8
8
state : present
9
9
append_privs : " {{ item.append_privs | default('no') }}"
10
- with_items : mysql_users
10
+ with_items : " {{ mysql_users }} "
You can’t perform that action at this time.
0 commit comments