diff --git a/awx_collection/plugins/modules/role.py b/awx_collection/plugins/modules/role.py index 51ed564397..bc7f9ea803 100644 --- a/awx_collection/plugins/modules/role.py +++ b/awx_collection/plugins/modules/role.py @@ -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'), ) diff --git a/awxkit/awxkit/cli/custom.py b/awxkit/awxkit/cli/custom.py index a2764b15ba..c4a13cebfc 100644 --- a/awxkit/awxkit/cli/custom.py +++ b/awxkit/awxkit/cli/custom.py @@ -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