diff --git a/README.md b/README.md index dfd9354a..8fb20a51 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,7 @@ The MySQL users and their privileges. A user has the values: - `state` (defaults to `present`) - `case_sensitive` (defaults to `false`) - `update_password` (defaults to `always`) + - `tls_requires` (defaults to `{}`) The formats of these are the same as in the `mysql_user` module. diff --git a/tasks/replication.yml b/tasks/replication.yml index 714ddfac..489aac66 100644 --- a/tasks/replication.yml +++ b/tasks/replication.yml @@ -6,6 +6,7 @@ password: "{{ mysql_replication_user.password }}" priv: "{{ mysql_replication_user.priv | default('*.*:REPLICATION SLAVE,REPLICATION CLIENT') }}" update_password: "{{ mysql_replication_user.update_password | default('always') }}" + tls_requires: "{{ mysql_replication_user.tls_requires | default({}) }}" state: present no_log: "{{ mysql_hide_passwords }}" when: diff --git a/tasks/users.yml b/tasks/users.yml index f06e0672..d16dccea 100644 --- a/tasks/users.yml +++ b/tasks/users.yml @@ -10,5 +10,6 @@ encrypted: "{{ item.encrypted | default(false) }}" column_case_sensitive: "{{ item.case_sensitive | default(false) }}" update_password: "{{ item.update_password | default('always') }}" + tls_requires: "{{ item.tls_requires | default({}) }}" with_items: "{{ mysql_users }}" no_log: "{{ mysql_hide_passwords }}"