mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-08 19:50:31 -07:00
Add documentation for privs with functions and procedures
This commit is contained in:
parent
ac927fdb08
commit
91e7f71c75
1 changed files with 10 additions and 0 deletions
|
@ -53,6 +53,7 @@ options:
|
||||||
the module will always report changes. It includes grouping columns
|
the module will always report changes. It includes grouping columns
|
||||||
by permission (C(SELECT(col1,col2)) instead of C(SELECT(col1),SELECT(col2))).
|
by permission (C(SELECT(col1,col2)) instead of C(SELECT(col1),SELECT(col2))).
|
||||||
- Can be passed as a dictionary (see the examples).
|
- Can be passed as a dictionary (see the examples).
|
||||||
|
- Supports GRANTs for procedures and functions (see the examples).
|
||||||
type: raw
|
type: raw
|
||||||
append_privs:
|
append_privs:
|
||||||
description:
|
description:
|
||||||
|
@ -188,6 +189,15 @@ EXAMPLES = r'''
|
||||||
'db1.*': 'ALL,GRANT'
|
'db1.*': 'ALL,GRANT'
|
||||||
'db2.*': 'ALL,GRANT'
|
'db2.*': 'ALL,GRANT'
|
||||||
|
|
||||||
|
# Use 'PROCEDURE' instead of 'FUNCTION' to apply GRANTs for a MySQL procedure instead.
|
||||||
|
- name: Grant a user the right to execute a function
|
||||||
|
community.mysql.mysql_user:
|
||||||
|
name: readonly
|
||||||
|
password: 12345
|
||||||
|
priv:
|
||||||
|
FUNCTION my_db.my_function: EXECUTE
|
||||||
|
state: present
|
||||||
|
|
||||||
# Note that REQUIRESSL is a special privilege that should only apply to *.* by itself.
|
# Note that REQUIRESSL is a special privilege that should only apply to *.* by itself.
|
||||||
# Setting this privilege in this manner is deprecated.
|
# Setting this privilege in this manner is deprecated.
|
||||||
# Use 'tls_requires' instead.
|
# Use 'tls_requires' instead.
|
||||||
|
|
Loading…
Add table
Reference in a new issue