Skip to content

Commit

Permalink
Issue geerlingguy#223: Generate a random default root password
Browse files Browse the repository at this point in the history
Instead of hardcoding an insecure default password for the `root` mysql user, generate a random one as discussed in issue geerlingguy#223 .
  • Loading branch information
colans authored Oct 7, 2021
1 parent 57c8638 commit 5de72c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# or sudo access
mysql_user_home: /root
mysql_user_name: root
mysql_user_password: root
mysql_user_password: "{{ lookup('password', '/dev/null length=20 chars=ascii_letters') }}"

# The default root user installed by mysql - almost always root
mysql_root_home: /root
Expand Down

0 comments on commit 5de72c8

Please sign in to comment.