mirror of
https://github.com/zebrajr/ansible.git
synced 2026-01-15 12:15:19 +00:00
Require Jinja2 3.1.0 or later (#84864)
This commit is contained in:
2
changelogs/fragments/jinja-version.yml
Normal file
2
changelogs/fragments/jinja-version.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
minor_changes:
|
||||
- Jinja2 version 3.1.0 or later is now required on the controller.
|
||||
@@ -82,9 +82,9 @@ from ansible.module_utils.compat.version import LooseVersion
|
||||
# Used for determining if the system is running a new enough Jinja2 version
|
||||
# and should only restrict on our documented minimum versions
|
||||
jinja2_version = version('jinja2')
|
||||
if jinja2_version < LooseVersion('3.0'):
|
||||
if jinja2_version < LooseVersion('3.1'):
|
||||
raise SystemExit(
|
||||
'ERROR: Ansible requires Jinja2 3.0 or newer on the controller. '
|
||||
'ERROR: Ansible requires Jinja2 3.1 or newer on the controller. '
|
||||
'Current version: %s' % jinja2_version
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# packages. Thus, this should be the loosest set possible (only required
|
||||
# packages, not optional ones, and with the widest range of versions that could
|
||||
# be suitable)
|
||||
jinja2 >= 3.0.0
|
||||
jinja2 >= 3.1.0 # Jinja2 native macro support fixed in 3.1.0
|
||||
PyYAML >= 5.1 # PyYAML 5.1 is required for Python 3.8+ support
|
||||
cryptography
|
||||
packaging
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# packages. Thus, this should be the loosest set possible (only required
|
||||
# packages, not optional ones, and with the widest range of versions that could
|
||||
# be suitable)
|
||||
jinja2 >= 3.0.0
|
||||
jinja2 >= 3.1.0 # Jinja2 native macro support fixed in 3.1.0
|
||||
PyYAML >= 5.1 # PyYAML 5.1 is required for Python 3.8+ support
|
||||
cryptography
|
||||
packaging
|
||||
|
||||
Reference in New Issue
Block a user