mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -02:30
add instance_groups on cli and awx.awx.role (#13784)
This commit is contained in:
committed by
GitHub
parent
2db29e5ce2
commit
479d0c2b12
@@ -116,6 +116,11 @@ options:
|
|||||||
- Project the role acts on.
|
- Project the role acts on.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
|
instance_groups:
|
||||||
|
description:
|
||||||
|
- Instance Group the role acts on.
|
||||||
|
type: list
|
||||||
|
elements: str
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Desired state.
|
- Desired state.
|
||||||
@@ -193,6 +198,7 @@ def main():
|
|||||||
lookup_organization=dict(),
|
lookup_organization=dict(),
|
||||||
project=dict(),
|
project=dict(),
|
||||||
projects=dict(type='list', elements='str'),
|
projects=dict(type='list', elements='str'),
|
||||||
|
instance_groups=dict(type='list', elements='str'),
|
||||||
state=dict(choices=['present', 'absent'], default='present'),
|
state=dict(choices=['present', 'absent'], default='present'),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -396,6 +396,7 @@ class RoleMixin(object):
|
|||||||
['credentials', 'credential'],
|
['credentials', 'credential'],
|
||||||
['job_templates', 'job_template'],
|
['job_templates', 'job_template'],
|
||||||
['workflow_job_templates', 'workflow_job_template'],
|
['workflow_job_templates', 'workflow_job_template'],
|
||||||
|
['instance_groups', 'instance_group'],
|
||||||
]
|
]
|
||||||
roles = {} # this is calculated once
|
roles = {} # this is calculated once
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user