Changed store_facts to use_fact_cache and added ANSIBLE_FACT_CACHE_TIMEOUT to the jobs config form

This commit is contained in:
Michael Abashian 2017-06-27 12:21:42 -04:00
parent 70d856b35e
commit 9618b3aca6
2 changed files with 7 additions and 3 deletions

View File

@ -55,6 +55,10 @@
type: 'text',
reset: 'DEFAULT_PROJECT_UPDATE_TIMEOUT',
},
ANSIBLE_FACT_CACHE_TIMEOUT: {
type: 'text',
reset: 'ANSIBLE_FACT_CACHE_TIMEOUT',
},
},
buttons: {

View File

@ -285,13 +285,13 @@ function(NotificationsList, CompletedJobsList, i18n) {
labelClass: 'stack-inline',
ngDisabled: '!(job_template_obj.summary_fields.user_capabilities.edit || canAddJobTemplate)'
}, {
name: 'store_facts',
label: i18n._('Store Ansible Facts'),
name: 'use_fact_cache',
label: i18n._('Use Fact Cache'),
type: 'checkbox',
column: 2,
awPopOver: "<p>" + i18n._("If enabled, a fact scan will be done when this job is launched.") + "</p>",
dataPlacement: 'right',
dataTitle: i18n._('Store Ansible Facts'),
dataTitle: i18n._('Use Fact Cache'),
dataContainer: "body",
labelClass: 'stack-inline',
ngDisabled: '!(job_template_obj.summary_fields.user_capabilities.edit || canAddJobTemplate)'