mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix documentation for sudoers module (#4469)
* Fix documentation for sudoers module * Update plugins/modules/system/sudoers.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
7cdab682c7
commit
fa65b9d1f0
1 changed files with 2 additions and 1 deletions
|
@ -23,6 +23,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- The commands allowed by the sudoers rule.
|
- The commands allowed by the sudoers rule.
|
||||||
- Multiple can be added by passing a list of commands.
|
- Multiple can be added by passing a list of commands.
|
||||||
|
- Use C(ALL) for all commands.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
group:
|
group:
|
||||||
|
@ -80,7 +81,7 @@ EXAMPLES = '''
|
||||||
state: present
|
state: present
|
||||||
user: bob
|
user: bob
|
||||||
runas: alice
|
runas: alice
|
||||||
commands: ANY
|
commands: ALL
|
||||||
|
|
||||||
- name: >-
|
- name: >-
|
||||||
Allow the monitoring group to run sudo /usr/local/bin/gather-app-metrics
|
Allow the monitoring group to run sudo /usr/local/bin/gather-app-metrics
|
||||||
|
|
Loading…
Reference in a new issue