add execution adminitrator to role module

This commit is contained in:
Sean Sullivan 2022-02-08 09:44:50 -05:00
parent 73bba00cc6
commit 94e53d988b
2 changed files with 17 additions and 1 deletions

View File

@ -34,7 +34,7 @@ options:
- 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:
@ -173,6 +173,7 @@ def main():
"workflow_admin",
"notification_admin",
"job_template_admin",
"execution_environment_admin",
],
required=True,
),

View File

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