mirror of
https://github.com/ansible/awx.git
synced 2026-03-10 22:19:28 -02:30
Adding state back in
This commit is contained in:
@@ -38,6 +38,12 @@ options:
|
|||||||
- Organization this label belongs to.
|
- Organization this label belongs to.
|
||||||
required: True
|
required: True
|
||||||
type: str
|
type: str
|
||||||
|
state:
|
||||||
|
description:
|
||||||
|
- Desired state of the resource.
|
||||||
|
default: "present"
|
||||||
|
choices: ["present"]
|
||||||
|
type: str
|
||||||
tower_oauthtoken:
|
tower_oauthtoken:
|
||||||
description:
|
description:
|
||||||
- The Tower OAuth token to use.
|
- The Tower OAuth token to use.
|
||||||
@@ -64,6 +70,7 @@ def main():
|
|||||||
name=dict(required=True, type='str'),
|
name=dict(required=True, type='str'),
|
||||||
new_name=dict(required=False, type='str'),
|
new_name=dict(required=False, type='str'),
|
||||||
organization=dict(required=True, type='str'),
|
organization=dict(required=True, type='str'),
|
||||||
|
state=dict(choices=['present', 'absent'], default='present'),
|
||||||
)
|
)
|
||||||
|
|
||||||
# Create a module for ourselves
|
# Create a module for ourselves
|
||||||
|
|||||||
Reference in New Issue
Block a user