mysql: better support for check mode
This commit is contained in:
parent
549cb2f917
commit
1d68340b3b
|
@ -13,6 +13,7 @@
|
||||||
command: "apg -n 1 -m 16 -M lcN"
|
command: "apg -n 1 -m 16 -M lcN"
|
||||||
register: mysql_admin_password
|
register: mysql_admin_password
|
||||||
changed_when: False
|
changed_when: False
|
||||||
|
check_mode: no
|
||||||
tags:
|
tags:
|
||||||
- mysql
|
- mysql
|
||||||
|
|
||||||
|
|
|
@ -30,9 +30,10 @@
|
||||||
when: ansible_distribution_major_version | version_compare('9', '>=')
|
when: ansible_distribution_major_version | version_compare('9', '>=')
|
||||||
|
|
||||||
- name: Read debian-sys-maint password
|
- name: Read debian-sys-maint password
|
||||||
shell: cat /etc/mysql/debian.cnf | grep -m1 "password = .*" | cut -d" " -f3
|
shell: 'cat /etc/mysql/debian.cnf | grep -m1 "password = .*" | cut -d" " -f3'
|
||||||
register: mysql_debian_password
|
register: mysql_debian_password
|
||||||
changed_when: False
|
changed_when: False
|
||||||
|
check_mode: no
|
||||||
tags:
|
tags:
|
||||||
- mysql
|
- mysql
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@
|
||||||
register: munin_redis_blocs_in_config
|
register: munin_redis_blocs_in_config
|
||||||
failed_when: False
|
failed_when: False
|
||||||
changed_when: False
|
changed_when: False
|
||||||
|
check_mode: no
|
||||||
|
|
||||||
- name: Add redis password for munin (if no more than 1 config block)
|
- name: Add redis password for munin (if no more than 1 config block)
|
||||||
ini_file:
|
ini_file:
|
||||||
|
|
Loading…
Reference in a new issue