Skip to content

Commit 6bdfd8b

Browse files
committed
Merge pull request geerlingguy#124 from nerzhul/drop_user
Permit to remove user, not only create them
2 parents d6706d7 + 67d5548 commit 6bdfd8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The MySQL databases to create. A database has the values `name`, `encoding` (def
4949

5050
mysql_users: []
5151

52-
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.
52+
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.
5353

5454
mysql_packages:
5555
- mysql

tasks/users.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
host: "{{ item.host | default('localhost') }}"
66
password: "{{ item.password }}"
77
priv: "{{ item.priv | default('*.*:USAGE') }}"
8-
state: present
8+
state: "{{ item.state | default('present') }}"
99
append_privs: "{{ item.append_privs | default('no') }}"
1010
with_items: "{{ mysql_users }}"
1111
no_log: true

0 commit comments

Comments
 (0)