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