From d10283210c4bf1f4a05c6b8eb951e462daee328e Mon Sep 17 00:00:00 2001 From: "Oleg \"Zmey!\" Vasiliev" Date: Sun, 27 Aug 2023 23:11:20 +0300 Subject: [PATCH] Add host filed for user creation --- tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 7e8de44..b8d73a5 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -44,8 +44,10 @@ with_items: "{{ mysql_databases }}" - name: MySQL | Create users +# TODO: Add more fileds from https://docs.ansible.com/ansible/latest/collections/community/mysql/mysql_user_module.html mysql_user: name: "{{ item.name }}" + host: "{{ item.host }}" state: "{{ item.state | d(omit) }}" password: "{{ item.password | d(omit) }}" priv: "{{ item.priv | d(omit) }}"