Skip to content

Commit

Permalink
Merge pull request #563 from Dherlou/improvement/mysql_users_update_p…
Browse files Browse the repository at this point in the history
…assword_binding

Improvement: add missing update_password binding of mysql_user module
  • Loading branch information
geerlingguy authored Feb 20, 2025
2 parents c5b5931 + c71c025 commit e508bc5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ The MySQL users and their privileges. A user has the values:
- `append_privs` (defaults to `false`)
- `state` (defaults to `present`)
- `case_sensitive` (defaults to `false`)
- `update_password` (defaults to `always`)

The formats of these are the same as in the `mysql_user` module.

Expand Down
1 change: 1 addition & 0 deletions tasks/replication.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
host: "{{ mysql_replication_user.host | default('%') }}"
password: "{{ mysql_replication_user.password }}"
priv: "{{ mysql_replication_user.priv | default('*.*:REPLICATION SLAVE,REPLICATION CLIENT') }}"
update_password: "{{ mysql_replication_user.update_password | default('always') }}"
state: present
no_log: "{{ mysql_hide_passwords }}"
when:
Expand Down
1 change: 1 addition & 0 deletions tasks/users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
append_privs: "{{ item.append_privs | default(false) }}"
encrypted: "{{ item.encrypted | default(false) }}"
column_case_sensitive: "{{ item.case_sensitive | default(false) }}"
update_password: "{{ item.update_password | default('always') }}"
with_items: "{{ mysql_users }}"
no_log: "{{ mysql_hide_passwords }}"

0 comments on commit e508bc5

Please # to comment.