Skip to content

Commit e393119

Browse files
committed
Fix Ansible 2.x deprecation warnings.
1 parent bb39bf5 commit e393119

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

tasks/configure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
group: root
2727
mode: 0644
2828
force: "{{ item.force | default(False) }}"
29-
with_items: mysql_config_include_files
29+
with_items: "{{ mysql_config_include_files }}"
3030
notify: restart mysql
3131

3232
- name: Create slow query log file (if configured).

tasks/databases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
collation: "{{ item.collation | default('utf8_general_ci') }}"
66
encoding: "{{ item.encoding | default('utf8') }}"
77
state: present
8-
with_items: mysql_databases
8+
with_items: "{{ mysql_databases }}"

tasks/secure-installation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
shell: >
1717
mysql -u root -NBe
1818
'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 }}"
2020
when: mysql_install_packages | bool or mysql_root_password_update
2121

2222
# Has to be after the root password assignment, for idempotency.
@@ -38,7 +38,7 @@
3838
name: ""
3939
host: "{{ item }}"
4040
state: absent
41-
with_items: mysql_anonymous_hosts.stdout_lines
41+
with_items: "{{ mysql_anonymous_hosts.stdout_lines }}"
4242

4343
- name: Remove MySQL test database.
4444
mysql_db: "name='test' state=absent"

tasks/setup-Debian.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
- name: Ensure MySQL packages are installed.
1414
apt: "name={{ item }} state=installed"
15-
with_items: mysql_packages
15+
with_items: "{{ mysql_packages }}"
1616
register: deb_mysql_install_packages
1717

1818
# Because Ubuntu starts MySQL as part of the install process, we need to stop

tasks/setup-RedHat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
- name: Ensure MySQL packages are installed.
33
yum: "name={{ item }} state=installed enablerepo={{ mysql_enablerepo }}"
4-
with_items: mysql_packages
4+
with_items: "{{ mysql_packages }}"
55
register: rh_mysql_install_packages
66

77
- name: Ensure MySQL Python libraries are installed.

tasks/users.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
priv: "{{ item.priv | default('*.*:USAGE') }}"
88
state: present
99
append_privs: "{{ item.append_privs | default('no') }}"
10-
with_items: mysql_users
10+
with_items: "{{ mysql_users }}"

0 commit comments

Comments
 (0)