add instance_groups on cli and awx.awx.role (#13784)

This commit is contained in:
Lorenzo Tanganelli 2023-04-04 16:09:48 +02:00 committed by GitHub
parent 2db29e5ce2
commit 479d0c2b12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -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'),
)

View File

@ -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