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', type: 'text',
reset: 'DEFAULT_PROJECT_UPDATE_TIMEOUT', reset: 'DEFAULT_PROJECT_UPDATE_TIMEOUT',
}, },
ANSIBLE_FACT_CACHE_TIMEOUT: {
type: 'text',
reset: 'ANSIBLE_FACT_CACHE_TIMEOUT',
},
}, },
buttons: { buttons: {

View File

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