File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ overwrite_global_mycnf: true
2323# mysql_config_file: /etc/my.cnf
2424# mysql_config_include_dir: /etc/my.cnf.d
2525
26+ # Whether to copy root user's config file with credentials to their homedir
27+ mysql_copy_root_user_mycnf : true
28+
2629# Pass in a comma-separated list of repos to use (e.g. "remi,epel"). Used only
2730# for RedHat systems (and derivatives).
2831mysql_enablerepo : " "
Original file line number Diff line number Diff line change 9595 group : root
9696 mode : 0600
9797 no_log : " {{ mysql_hide_passwords }}"
98- when : mysql_install_packages | bool or mysql_root_password_update
98+ when :
99+ - mysql_install_packages | bool or mysql_root_password_update
100+ - mysql_copy_root_user_mycnf
99101
100102- name : Get list of hosts for the anonymous user.
101103 ansible.builtin.command : mysql -NBe "SELECT Host FROM mysql.user WHERE User = ''"
You can’t perform that action at this time.
0 commit comments