-
-
-
+ Ansible tasks, where supported. This is equivalent
+ to Ansible’s --diff mode.`)}
+ />
-
-
-
+ playbook, and you want to run a specific part of a
+ play or task. Use commas to separate multiple tags.
+ Refer to Ansible Tower documentation for details on
+ the usage of tags.`)}
+ />
form.setFieldValue(field.name, value)}
@@ -624,16 +600,13 @@ class JobTemplateForm extends Component {
css="margin-top: 20px"
fieldId="template-skip-tags"
>
-
-
-
+ />
form.setFieldValue(field.name, value)}
@@ -661,16 +634,13 @@ class JobTemplateForm extends Component {
{i18n._(t`Provisioning Callbacks`)}
-
-
-
+ />
}
id="option-callbacks"
@@ -735,50 +705,29 @@ class JobTemplateForm extends Component {
const FormikApp = withFormik({
mapPropsToValues(props) {
const { template = {} } = props;
- const {
- name = '',
- description = '',
- job_type = 'run',
- inventory = '',
- project = '',
- playbook = '',
- forks,
- limit,
- verbosity,
- job_slice_count,
- timeout,
- diff_mode,
- job_tags,
- skip_tags,
- become_enabled,
- allow_callbacks,
- allow_simultaneous,
- use_fact_cache,
- host_config_key,
- summary_fields = { labels: { results: [] } },
- } = { ...template };
+ const { summary_fields = { labels: { results: [] } } } = template;
return {
- name: name || '',
- description: description || '',
- job_type: job_type || '',
- inventory: inventory || '',
- project: project || '',
- playbook: playbook || '',
+ name: template.name || '',
+ description: template.description || '',
+ job_type: template.job_type || 'run',
+ inventory: template.inventory || '',
+ project: template.project || '',
+ playbook: template.playbook || '',
labels: summary_fields.labels.results,
- forks: forks || 0,
- limit: limit || '',
- verbosity: verbosity || '0',
- job_slice_count: job_slice_count || 1,
- timeout: timeout || 0,
- diff_mode: diff_mode || false,
- job_tags: job_tags || '',
- skip_tags: skip_tags || '',
- become_enabled: become_enabled || false,
- allow_callbacks: allow_callbacks || false,
- allow_simultaneous: allow_simultaneous || false,
- use_fact_cache: use_fact_cache || false,
- host_config_key: host_config_key || '',
+ forks: template.forks || 0,
+ limit: template.limit || '',
+ verbosity: template.verbosity || '0',
+ job_slice_count: template.job_slice_count || 1,
+ timeout: template.timeout || 0,
+ diff_mode: template.diff_mode || false,
+ job_tags: template.job_tags || '',
+ skip_tags: template.skip_tags || '',
+ become_enabled: template.become_enabled || false,
+ allow_callbacks: template.allow_callbacks || false,
+ allow_simultaneous: template.allow_simultaneous || false,
+ use_fact_cache: template.use_fact_cache || false,
+ host_config_key: template.host_config_key || '',
};
},
handleSubmit: (values, bag) => bag.props.handleSubmit(values),