From: Alexander Barton Date: Wed, 10 Mar 2021 16:29:22 +0000 (+0100) Subject: ansible/td-mysql-server: Add "no_log" to tasks dealing with passwords X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=AnsibleRoles.git;a=commitdiff_plain;h=85ff262501933faf7e1a555ba14e11f70f05cdfa ansible/td-mysql-server: Add "no_log" to tasks dealing with passwords This fixes the following warning of Ansible: "Module did not set no_log for update_password" --- diff --git a/roles/mysql-server/tasks/main.yml b/roles/mysql-server/tasks/main.yml index 7f0c12a..7bcee8b 100644 --- a/roles/mysql-server/tasks/main.yml +++ b/roles/mysql-server/tasks/main.yml @@ -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: @@ -98,3 +101,4 @@ with_items: - "localhost" when: mysql_server_root_host != "localhost" + no_log: true