mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[aws] Default state of iam_managed_policy to present
(#42069)
This default matches with the other IAM modules, such as iam_role.
This commit is contained in:
parent
0104286e9a
commit
d76e9008ee
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ options:
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Should this managed policy be present or absent. Set to absent to detach all entities from this policy and remove it if found.
|
- Should this managed policy be present or absent. Set to absent to detach all entities from this policy and remove it if found.
|
||||||
required: True
|
default: present
|
||||||
choices: [ "present", "absent" ]
|
choices: [ "present", "absent" ]
|
||||||
author: "Dan Kozlowski (@dkhenry)"
|
author: "Dan Kozlowski (@dkhenry)"
|
||||||
extends_documentation_fragment:
|
extends_documentation_fragment:
|
||||||
|
@ -278,7 +278,7 @@ def main():
|
||||||
make_default=dict(type='bool', default=True),
|
make_default=dict(type='bool', default=True),
|
||||||
only_version=dict(type='bool', default=False),
|
only_version=dict(type='bool', default=False),
|
||||||
fail_on_delete=dict(type='bool', default=True),
|
fail_on_delete=dict(type='bool', default=True),
|
||||||
state=dict(required=True, choices=['present', 'absent']),
|
state=dict(default='present', choices=['present', 'absent']),
|
||||||
))
|
))
|
||||||
|
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
|
|
Loading…
Reference in a new issue