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

This commit is contained in:
Lorenzo Tanganelli
2023-04-04 10:09:48 -04:00
committed by GitHub
parent 2db29e5ce2
commit 479d0c2b12
2 changed files with 7 additions and 0 deletions
+6
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'),
)
+1
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