Add host filed for user creation

master
Oleg "Zmey!" Vasiliev 2023-08-27 23:11:20 +03:00
parent 283454fc69
commit d10283210c
1 changed files with 2 additions and 0 deletions

View File

@ -44,8 +44,10 @@
with_items: "{{ mysql_databases }}" with_items: "{{ mysql_databases }}"
- name: MySQL | Create users - name: MySQL | Create users
# TODO: Add more fileds from https://docs.ansible.com/ansible/latest/collections/community/mysql/mysql_user_module.html
mysql_user: mysql_user:
name: "{{ item.name }}" name: "{{ item.name }}"
host: "{{ item.host }}"
state: "{{ item.state | d(omit) }}" state: "{{ item.state | d(omit) }}"
password: "{{ item.password | d(omit) }}" password: "{{ item.password | d(omit) }}"
priv: "{{ item.priv | d(omit) }}" priv: "{{ item.priv | d(omit) }}"