mirror of
https://github.com/ansible/awx.git
synced 2026-05-13 04:17:36 -02:30
add execution adminitrator to role module
This commit is contained in:
@@ -34,7 +34,7 @@ options:
|
|||||||
- The role type to grant/revoke.
|
- The role type to grant/revoke.
|
||||||
required: True
|
required: True
|
||||||
choices: ["admin", "read", "member", "execute", "adhoc", "update", "use", "approval", "auditor", "project_admin", "inventory_admin", "credential_admin",
|
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
|
type: str
|
||||||
target_team:
|
target_team:
|
||||||
description:
|
description:
|
||||||
@@ -173,6 +173,7 @@ def main():
|
|||||||
"workflow_admin",
|
"workflow_admin",
|
||||||
"notification_admin",
|
"notification_admin",
|
||||||
"job_template_admin",
|
"job_template_admin",
|
||||||
|
"execution_environment_admin",
|
||||||
],
|
],
|
||||||
required=True,
|
required=True,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -85,6 +85,21 @@
|
|||||||
that:
|
that:
|
||||||
- "result is changed"
|
- "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
|
- name: Create a workflow
|
||||||
workflow_job_template:
|
workflow_job_template:
|
||||||
name: test-role-workflow
|
name: test-role-workflow
|
||||||
|
|||||||
Reference in New Issue
Block a user