From 4955ad4e0154da6028ce4391a0a5ce4108475d8a Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Mon, 30 Mar 2015 14:15:14 -0400 Subject: [PATCH] added privilege escalation chxbox to JT form page the job template page will need to have a flag to provide the user to run playbooks as sudo --- awx/ui/static/js/forms/JobTemplates.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/awx/ui/static/js/forms/JobTemplates.js b/awx/ui/static/js/forms/JobTemplates.js index 856c2527bc..a6cb174afe 100644 --- a/awx/ui/static/js/forms/JobTemplates.js +++ b/awx/ui/static/js/forms/JobTemplates.js @@ -295,6 +295,19 @@ export default // '
A survey is enabled but it does not exist. Create a survey or disable the survey.
' '
A survey is enabled but it does not exist. Create a survey or uncheck the Enable Survey box to disable the survey.
' }, + become: { + label: 'Enable Privilege Escalation', + type: 'checkbox', + addRequired: false, + editRequird: false, + trueValue: 'true', + falseValue: 'false', + column: 2, + awPopOver: "

If enabled, run this playbook as an administrator. This is the equivalent of passing the --become option to the ansible-playbook command.

", + dataPlacement: 'right', + dataTitle: 'Become Privilege Escalation', + dataContainer: "body" + }, allow_callbacks: { label: 'Allow Provisioning Callbacks', type: 'checkbox',