Add documentation for privs with functions and procedures (#169)

(cherry picked from commit 6bce48e771)
This commit is contained in:
Alexander Skiba 2021-05-18 07:57:07 +02:00 committed by Andrew Klychkov
parent dec50787f8
commit cbcc4a2d01

View file

@ -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.