mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
add execution adminitrator to role module
This commit is contained in:
parent
73bba00cc6
commit
94e53d988b
@ -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,
|
||||
),
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user