Skip to content

Commit

Permalink
Merge pull request #11696 from sean-m-sullivan/awx_collection_role_up…
Browse files Browse the repository at this point in the history
…date_v2

add execution_environment_admin to role module
  • Loading branch information
shanemcd committed Feb 8, 2022
2 parents 6774a12 + 94e53d9 commit 54cbf13
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion awx_collection/plugins/modules/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
- The role type to grant/revoke.
required: True
choices: ["admin", "read", "member", "execute", "adhoc", "update", "use", "approval", "auditor", "project_admin", "inventory_admin", "credential_admin",
"workflow_admin", "notification_admin", "job_template_admin"]
"workflow_admin", "notification_admin", "job_template_admin", "execution_environment_admin"]
type: str
target_team:
description:
Expand Down Expand Up @@ -173,6 +173,7 @@ def main():
"workflow_admin",
"notification_admin",
"job_template_admin",
"execution_environment_admin",
],
required=True,
),
Expand Down
15 changes: 15 additions & 0 deletions awx_collection/tests/integration/targets/role/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,21 @@
that:
- "result is changed"

- name: Add Joe as execution admin to Default Org.
role:
user: "{{ username }}"
role: execution_environment_admin
organizations: Default
state: "{{ item }}"
register: result
with_items:
- "present"
- "absent"

- assert:
that:
- "result is changed"

- name: Create a workflow
workflow_job_template:
name: test-role-workflow
Expand Down

0 comments on commit 54cbf13

Please sign in to comment.