diff --git a/README.md b/README.md index 75c3485f..0035f1bf 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/tasks/replication.yml b/tasks/replication.yml index 1707bf6a..714ddfac 100644 --- a/tasks/replication.yml +++ b/tasks/replication.yml @@ -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: diff --git a/tasks/users.yml b/tasks/users.yml index 7bdecd3e..f06e0672 100644 --- a/tasks/users.yml +++ b/tasks/users.yml @@ -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 }}"