diff --git a/README-sudocmd.md b/README-sudocmd.md index 64300e08d5b8484ae08649a333c313c11a6efd9c..e68fa01da2f8b36db9afc35214d6108752e97b63 100644 --- a/README-sudocmd.md +++ b/README-sudocmd.md @@ -67,7 +67,7 @@ Example playbook to make sure sudocmd is absent: tasks: # Ensure sudocmd are absent - - ipahostgroup: + - ipasudocmd: ipaadmin_password: SomeADMINpassword name: /usr/bin/su state: absent diff --git a/README-sudorule.md b/README-sudorule.md index daa6c0a384c78a9a4196cfede2da61fd7a879a07..b973c369eb7af2659e70bbd7f8bb7e7d3f0ace23 100644 --- a/README-sudorule.md +++ b/README-sudorule.md @@ -125,7 +125,7 @@ Variable | Description | Required `usercategory` \| `usercat` | User category the rule applies to. Choices: ["all", ""] | no `hostcategory` \| `hostcat` | Host category the rule applies to. Choices: ["all", ""] | no `cmdcategory` \| `cmdcat` | Command category the rule applies to. Choices: ["all", ""] | no -`runasusercategory` \| `rusasusercat` | RunAs User category the rule applies to. Choices: ["all", ""] | no +`runasusercategory` \| `runasusercat` | RunAs User category the rule applies to. Choices: ["all", ""] | no `runasgroupcategory` \| `runasgroupcat` | RunAs Group category the rule applies to. Choices: ["all", ""] | no `nomembers` | Suppress processing of membership attributes. (bool) | no `host` | List of host name strings assigned to this sudorule. | no @@ -136,8 +136,8 @@ Variable | Description | Required `deny_sudocmd` | List of sudocmd name strings assigned to the deny group of this sudorule. | no `allow_sudocmdgroup` | List of sudocmd groups name strings assigned to the allow group of this sudorule. | no `deny_sudocmdgroup` | List of sudocmd groups name strings assigned to the deny group of this sudorule. | no -`sudooption` \| `option` | List of options to the sudorule | no -`order` | Integer to order the sudorule | no +`sudooption` \| `options` | List of options to the sudorule | no +`order` \| `sudoorder` | Integer to order the sudorule | no `runasuser` | List of users for Sudo to execute as. | no `runasgroup` | List of groups for Sudo to execute as. | no `action` | Work on sudorule or member level. It can be on of `member` or `sudorule` and defaults to `sudorule`. | no diff --git a/plugins/modules/ipasudocmd.py b/plugins/modules/ipasudocmd.py index 08344f41b6a6a351232726efe3dcfaaf27444b24..32a25ab0fc08cf294fabe04fde70f0aace3b58d0 100644 --- a/plugins/modules/ipasudocmd.py +++ b/plugins/modules/ipasudocmd.py @@ -56,15 +56,15 @@ author: EXAMPLES = """ # Ensure sudocmd is present -- ipacommand: +- ipasudocmd: ipaadmin_password: SomeADMINpassword - name: su + name: /usr/bin/su state: present # Ensure sudocmd is absent -- ipacommand: +- ipasudocmd: ipaadmin_password: SomeADMINpassword - name: su + name: /usr/bin/su state: absent """