mark all unsafe launch-time extra vars as !unsafe

see: https://github.com/ansible/tower/issues/1338
see: https://bugzilla.redhat.com/show_bug.cgi?id=1565865
This commit is contained in:
Ryan Petrello
2018-04-11 18:14:08 -04:00
parent bba7f45972
commit 88c243c92a
8 changed files with 290 additions and 9 deletions

View File

@@ -132,6 +132,15 @@ register(
required=False,
)
register(
'ALLOW_JINJA_IN_JOB_TEMPLATE_EXTRA_VARS',
field_class=fields.BooleanField,
label=_('Allow Jinja template execution in Job Template extra vars'),
help_text=_('Ansible allows variable substitution and templating via the Jinja2 templating language for a variety of arguments (such as --extra-vars); enabling this flag allows arbitrary Jinja templates to be used on extra vars defined in Job Templates.'), # noqa
category=_('Jobs'),
category_slug='jobs',
)
register(
'AWX_PROOT_ENABLED',
field_class=fields.BooleanField,