Commit 0ec0e205 authored by Lars Beckers's avatar Lars Beckers
Browse files

ensure no passwords are logged

parent b9d248dc
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
- name: get or create the mysql root password - name: get or create the mysql root password
local_action: pass name="db/{{ ansible_hostname }}-mysql" state=present generate=20 store=FSMPI_PASSWORD_STORE_DIR limit=yes local_action: pass name="db/{{ ansible_hostname }}-mysql" state=present generate=20 store=FSMPI_PASSWORD_STORE_DIR limit=yes
register: mysql_root_password register: mysql_root_password
no_log: True
tags: tags:
- password - password
- mysql - mysql
...@@ -43,6 +44,7 @@ ...@@ -43,6 +44,7 @@
login_user: root login_user: root
login_password: "{{ mysql_root_password.password }}" login_password: "{{ mysql_root_password.password }}"
register: mysql_root_creation_result register: mysql_root_creation_result
no_log: True
ignore_errors: yes ignore_errors: yes
tags: tags:
- mysql - mysql
...@@ -52,6 +54,7 @@ ...@@ -52,6 +54,7 @@
mysql_user: mysql_user:
name: root name: root
password: "{{ mysql_root_password.password }}" password: "{{ mysql_root_password.password }}"
no_log: True
when: mysql_root_creation_result|failed when: mysql_root_creation_result|failed
tags: tags:
- mysql - mysql
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment