Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make no_log configurable #228

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -322,3 +322,6 @@ galera_enable_cacti_monitoring: false
# Define the cacti user info for cacti db monitoring - If used. May remove later.
cacti_db_password: "cactiuser"
cacti_db_user: "cactiuser"

# Whether to output user data when managing users.
galera_users_no_log: true
6 changes: 3 additions & 3 deletions tasks/configure_root_access.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
name: "root"
password: "{{ mariadb_mysql_root_password }}"
become: true
no_log: true
no_log: "{{ galera_users_no_log | bool }}"
ignore_errors: true
run_once: true
retries: 6
Expand All @@ -25,7 +25,7 @@
group: "root"
mode: "u=rw,g=,o="
become: true
no_log: true
no_log: "{{ galera_users_no_log | bool }}"

- name: configure_root_access | updating root passwords (allow from anywhere)
community.mysql.mysql_user:
Expand All @@ -35,7 +35,7 @@
password: "{{ mariadb_mysql_root_password }}"
priv: "*.*:ALL,GRANT"
become: true
no_log: true
no_log: "{{ galera_users_no_log | bool }}"
run_once: true
retries: 6
delay: 5
Expand Down
Loading