Skip to content

Commit cb75ecb

Browse files
committed
Switch from deprecated always_run to check_mode and bump min Ansible version.
1 parent b0b189a commit cb75ecb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ galaxy_info:
66
description: MySQL server for RHEL/CentOS and Debian/Ubuntu.
77
company: "Midwestern Mac, LLC"
88
license: "license (BSD, MIT)"
9-
min_ansible_version: 1.9
9+
min_ansible_version: 2.2
1010
platforms:
1111
- name: EL
1212
versions:

tasks/secure-installation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
command: mysql -NBe "SELECT Host FROM mysql.user WHERE User = '{{ mysql_root_username }}' ORDER BY (Host='localhost') ASC"
3333
register: mysql_root_hosts
3434
changed_when: false
35-
always_run: true
35+
check_mode: no
3636
when: mysql_install_packages | bool or mysql_root_password_update
3737

3838
# Note: We do not use mysql_user for this operation, as it doesn't always update
@@ -67,7 +67,7 @@
6767
command: mysql -NBe 'SELECT Host FROM mysql.user WHERE User = ""'
6868
register: mysql_anonymous_hosts
6969
changed_when: false
70-
always_run: true
70+
check_mode: no
7171

7272
- name: Remove anonymous MySQL users.
7373
mysql_user:

0 commit comments

Comments
 (0)