-
-
Notifications
You must be signed in to change notification settings - Fork 607
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
Use append_privs for WP DB privileges #422
Conversation
I would say you should have separate DB users :) But regardless, this seems like a good default to have anyway. Thanks! |
@@ -11,6 +11,7 @@ | |||
- name: Create/assign database user to db and grant permissions | |||
mysql_user: name="{{ item.value.env.db_user }}" | |||
password="{{ item.value.env.db_password }}" | |||
append_privs=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use yes
instead of true
? Matches up with Ansible docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New commit coming within minutes. I was not sure, as if you see the same page I pasted above, the example has true
. 😕
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that's inconsistent on their part :( But they always use yes
/no
in the options section of their docs.
@primozcigler would you be able to squash these commits? |
e9b3084
to
66a67da
Compare
This change allows that multiple WP installations share the same db user.
@swalkinshaw indeed, my bad 👍 |
Added append_privs to WP setup - databases.
This change allows that multiple WP installations share the same db
user.
Check the docs here: http://docs.ansible.com/ansible/mysql_user_module.html
For example I might have multiple WP installations, but a common scenario is to have a 1 DB user which will have access to multiple WP databases.