]> arthur.barton.de Git - AnsibleRoles.git/commitdiff
ansible/td-mysql-server: Add "no_log" to tasks dealing with passwords
authorAlexander Barton <alex@barton.de>
Wed, 10 Mar 2021 16:29:22 +0000 (17:29 +0100)
committerAlexander Barton <alex@barton.de>
Wed, 10 Mar 2021 16:29:27 +0000 (17:29 +0100)
This fixes the following warning of Ansible:
"Module did not set no_log for update_password"

roles/mysql-server/tasks/main.yml

index 7f0c12aad8727e8df3f45ab1c09b238e328daa70..7bcee8bb7e306e26261ac9a41ea6d21f83450dc7 100644 (file)
@@ -53,6 +53,7 @@
     password={{ mysql_server_ansible_password }}
     priv="*.*:ALL,GRANT"
     state=present
+  no_log: true
 
 - name: setup MySQL "root" account
   tags:
@@ -67,6 +68,7 @@
     password={{ mysql_server_root_password }}
     priv="*.*:ALL,GRANT"
     state=present
+  no_log: true
 
 - name: Remove unwanted MySQL "root" accounts (1/2)
   tags:
@@ -83,6 +85,7 @@
     - "{{ ansible_hostname }}"
     - "127.0.0.1"
     - "::1"
+  no_log: true
 
 - name: Remove unwanted MySQL "root" accounts (2/2)
   tags:
   with_items:
     - "localhost"
   when: mysql_server_root_host != "localhost"
+  no_log: true