Skip to content

Commit

Permalink
Merge pull request #48 from kdebisschop/hide-user-passwords
Browse files Browse the repository at this point in the history
Keep user passwords out of ansible log
  • Loading branch information
tersmitten authored Jan 30, 2024
2 parents f656c29 + 9ccc6f2 commit b844885
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tasks/install.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# tasks file
---
- name: install | configure debconf
no_log: true
ansible.builtin.debconf:
name: "{{ item.name }}"
question: "{{ item.question }}"
Expand Down
2 changes: 2 additions & 0 deletions tasks/users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
priv: "{{ item[0].privs | join('/') }}"
host: "{{ item[1] }}"
state: present
no_log: true
with_nested:
- "{{ percona_server_users_present | selectattr('hosts', 'undefined') | list }}"
- "{{ percona_server_users_present_hosts }}"
Expand All @@ -21,6 +22,7 @@
priv: "{{ item[0].privs | join('/') }}"
host: "{{ item[1] }}"
state: present
no_log: true
with_subelements:
- "{{ percona_server_users_present | selectattr('hosts', 'defined') | list }}"
- hosts
Expand Down

0 comments on commit b844885

Please sign in to comment.