Skip to content

Commit

Permalink
Issue geerlingguy#223: Set the user password as well, not just the ro…
Browse files Browse the repository at this point in the history
…ot one.
  • Loading branch information
colans authored Oct 7, 2021
1 parent 5de72c8 commit daaea32
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
---
# Set a random password.
mysql_password: "{{ lookup('password', '/dev/null length=20 chars=ascii_letters') }}"

# Set this to the user ansible is logging in as - should have root
# or sudo access
mysql_user_home: /root
mysql_user_name: root
mysql_user_password: "{{ lookup('password', '/dev/null length=20 chars=ascii_letters') }}"
mysql_user_password: "{{ mysql_password }}"

# The default root user installed by mysql - almost always root
mysql_root_home: /root
mysql_root_username: root
mysql_root_password: root
mysql_root_password: "{{ mysql_password }}"

# Set this to `true` to forcibly update the root password.
mysql_root_password_update: false
Expand Down

0 comments on commit daaea32

Please sign in to comment.