Compare commits

...

3 Commits

Author SHA1 Message Date
d10283210c Add host filed for user creation 2023-08-27 23:11:20 +03:00
Oleg "Zmey!" Vasiliev
283454fc69 Trully fix license path 2022-05-09 21:37:04 +03:00
Oleg "Zmey!" Vasiliev
82a89cbeb1 Fix license path 2022-05-09 21:36:28 +03:00
2 changed files with 3 additions and 1 deletions

View File

@@ -8,4 +8,4 @@ See `defaults/main.yml` and probably `tasks/main.yml`. Role is pretty simple.
Defaults are suitable for MariaDB on Archlinux.
### LICENSE
[MIT](README.md)
[MIT](LICENSE)

View File

@@ -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) }}"