mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-09 11:20:18 +01:00
Permit to remove user, not only create them
This commit is contained in:
parent
d6706d703c
commit
67d5548e6d
2 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ The MySQL databases to create. A database has the values `name`, `encoding` (def
|
|||
|
||||
mysql_users: []
|
||||
|
||||
The MySQL users and their privileges. A user has the values `name`, `host` (defaults to `localhost`), `password`, `priv` (defaults to `*.*:USAGE`), and `append_privs` (defaults to `no`). The formats of these are the same as in the `mysql_user` module.
|
||||
The MySQL users and their privileges. A user has the values `name`, `host` (defaults to `localhost`), `password`, `priv` (defaults to `*.*:USAGE`), `append_privs` (defaults to `no`), `state` (defaults to `present`). The formats of these are the same as in the `mysql_user` module.
|
||||
|
||||
mysql_packages:
|
||||
- mysql
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
host: "{{ item.host | default('localhost') }}"
|
||||
password: "{{ item.password }}"
|
||||
priv: "{{ item.priv | default('*.*:USAGE') }}"
|
||||
state: present
|
||||
state: "{{ item.state | default('present') }}"
|
||||
append_privs: "{{ item.append_privs | default('no') }}"
|
||||
with_items: "{{ mysql_users }}"
|
||||
no_log: true
|
||||
|
|
Loading…
Reference in a new issue