Skip to content

Commit

Permalink
make no_log configurable (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
andanotheruser authored Nov 13, 2024
1 parent 2523590 commit f1bbdf9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
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

0 comments on commit f1bbdf9

Please sign in to comment.