mirror of
https://github.com/ansible/awx.git
synced 2026-03-17 17:07:33 -02:30
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
This commit is contained in:
@@ -295,6 +295,19 @@ export default
|
|||||||
// '<div class="error ng-hide" id="job-template-survey-error" ng-show="survey_enabled === true && survey_exists!==true">A survey is enabled but it does not exist. Create a survey or disable the survey. </div>'
|
// '<div class="error ng-hide" id="job-template-survey-error" ng-show="survey_enabled === true && survey_exists!==true">A survey is enabled but it does not exist. Create a survey or disable the survey. </div>'
|
||||||
'<div class="error ng-hide" id="job-template-survey-error" ng-show="invalid_survey">A survey is enabled but it does not exist. Create a survey or uncheck the Enable Survey box to disable the survey. </div>'
|
'<div class="error ng-hide" id="job-template-survey-error" ng-show="invalid_survey">A survey is enabled but it does not exist. Create a survey or uncheck the Enable Survey box to disable the survey. </div>'
|
||||||
},
|
},
|
||||||
|
become: {
|
||||||
|
label: 'Enable Privilege Escalation',
|
||||||
|
type: 'checkbox',
|
||||||
|
addRequired: false,
|
||||||
|
editRequird: false,
|
||||||
|
trueValue: 'true',
|
||||||
|
falseValue: 'false',
|
||||||
|
column: 2,
|
||||||
|
awPopOver: "<p>If enabled, run this playbook as an administrator. This is the equivalent of passing the<code> --become</code> option to the <code> ansible-playbook</code> command. </p>",
|
||||||
|
dataPlacement: 'right',
|
||||||
|
dataTitle: 'Become Privilege Escalation',
|
||||||
|
dataContainer: "body"
|
||||||
|
},
|
||||||
allow_callbacks: {
|
allow_callbacks: {
|
||||||
label: 'Allow Provisioning Callbacks',
|
label: 'Allow Provisioning Callbacks',
|
||||||
type: 'checkbox',
|
type: 'checkbox',
|
||||||
|
|||||||
Reference in New Issue
Block a user