From 41fe6663d95ea17fb8858ccc6fd6264c58572a30 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Sun, 10 Apr 2022 08:41:23 +0200 Subject: [PATCH] Fix documentation for sudoers module (#4469) (#4474) * Fix documentation for sudoers module * Update plugins/modules/system/sudoers.py Co-authored-by: Felix Fontein Co-authored-by: Felix Fontein (cherry picked from commit fa65b9d1f09d39732e53700e0e7929091b5241a3) Co-authored-by: Ulf Tigerstedt --- plugins/modules/system/sudoers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/modules/system/sudoers.py b/plugins/modules/system/sudoers.py index 52b87c7524..86d8306c26 100644 --- a/plugins/modules/system/sudoers.py +++ b/plugins/modules/system/sudoers.py @@ -23,6 +23,7 @@ options: description: - The commands allowed by the sudoers rule. - Multiple can be added by passing a list of commands. + - Use C(ALL) for all commands. type: list elements: str group: @@ -80,7 +81,7 @@ EXAMPLES = ''' state: present user: bob runas: alice - commands: ANY + commands: ALL - name: >- Allow the monitoring group to run sudo /usr/local/bin/gather-app-metrics