Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible FreeIPA
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Ansible FreeIPA
Commits
ae283031
Unverified
Commit
ae283031
authored
Sep 1, 2021
by
Thomas Woerner
Committed by
GitHub
Sep 1, 2021
Browse files
Options
Downloads
Plain Diff
Merge pull request #599 from rjeffman/ipapermission_add_new_name
ipapermission: Add 'new_name' as an alias to 'rename'.
parents
f04aefcb
0966bbcd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README-permission.md
+1
-1
1 addition, 1 deletion
README-permission.md
plugins/modules/ipapermission.py
+3
-2
3 additions, 2 deletions
plugins/modules/ipapermission.py
with
4 additions
and
3 deletions
README-permission.md
+
1
−
1
View file @
ae283031
...
@@ -175,7 +175,7 @@ Variable | Description | Required
...
@@ -175,7 +175,7 @@ Variable | Description | Required
`targetgroup` | User group to apply permissions to (sets target) | no
`targetgroup` | User group to apply permissions to (sets target) | no
`object_type` | Type of IPA object (sets subtree and objectClass targetfilter) | no
`object_type` | Type of IPA object (sets subtree and objectClass targetfilter) | no
`no_members` | Suppress processing of membership | no
`no_members` | Suppress processing of membership | no
`rename` | Rename the permission object | no
`rename`
\| `new_name`
| Rename the permission object | no
`action` | Work on permission or member level. It can be on of `member` or `permission` and defaults to `permission`. | no
`action` | Work on permission or member level. It can be on of `member` or `permission` and defaults to `permission`. | no
`state` | The state to ensure. It can be one of `present`, `absent`, or `renamed` default: `present`. | no
`state` | The state to ensure. It can be one of `present`, `absent`, or `renamed` default: `present`. | no
...
...
This diff is collapsed.
Click to expand it.
plugins/modules/ipapermission.py
+
3
−
2
View file @
ae283031
...
@@ -102,6 +102,7 @@ options:
...
@@ -102,6 +102,7 @@ options:
rename:
rename:
description: Rename the permission object
description: Rename the permission object
required: false
required: false
aliases: [
"
new_name
"
]
action:
action:
description: Work on permission or member privilege level.
description: Work on permission or member privilege level.
choices: [
"
permission
"
,
"
member
"
]
choices: [
"
permission
"
,
"
member
"
]
...
@@ -226,8 +227,8 @@ def main():
...
@@ -226,8 +227,8 @@ def main():
object_type
=
dict
(
type
=
"
str
"
,
aliases
=
[
"
type
"
],
default
=
None
,
object_type
=
dict
(
type
=
"
str
"
,
aliases
=
[
"
type
"
],
default
=
None
,
required
=
False
),
required
=
False
),
no_members
=
dict
(
type
=
bool
,
default
=
None
,
require
=
False
),
no_members
=
dict
(
type
=
bool
,
default
=
None
,
require
=
False
),
rename
=
dict
(
type
=
"
str
"
,
default
=
None
,
required
=
False
)
,
rename
=
dict
(
type
=
"
str
"
,
default
=
None
,
required
=
False
,
aliases
=
[
"
new_name
"
]),
action
=
dict
(
type
=
"
str
"
,
default
=
"
permission
"
,
action
=
dict
(
type
=
"
str
"
,
default
=
"
permission
"
,
choices
=
[
"
member
"
,
"
permission
"
]),
choices
=
[
"
member
"
,
"
permission
"
]),
# state
# state
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment