robertdebock / ansible-role-tomcat

Install and configure tomcat on your system.
https://robertdebock.nl/
Apache License 2.0
46 stars 57 forks source link

no test named 'boolean' #37

Closed onknows closed 3 years ago

onknows commented 3 years ago

Describe the bug

On AWX 17.0.1 ( with Ansible 2.9.17 ) provision fails with message

{
  "msg": "The conditional check 'tomcat_service_enabled is boolean' failed. The error was: template error while templating string: no test named 'boolean'. String: {% if tomcat_service_enabled is boolean %} True {% else %} False {% endif %}",
  "_ansible_no_log": false
}

Playbook

- name: myplay
  hosts: myplay
  become: yes

  roles:
    - { role: java,    tags: ["java"] }
    - { role: robertdebock.tomcat,     tags: ["tomcat"] }

## Output

{ "msg": "The conditional check 'tomcat_service_enabled is boolean' failed. The error was: template error while templating string: no test named 'boolean'. String: {% if tomcat_service_enabled is boolean %} True {% else %} False {% endif %}", "_ansible_no_log": false }



## Environment

- Control node OS: AWX in container
- Control node Ansible version2.9.17
- Managed node OS: Ubuntu 18.04
robertdebock commented 3 years ago

The version of Jinja you are using does not support, see requirements.txt.

cubistico commented 1 year ago

How to update jinja to a newer version than available from apt-get:

sudo pip install jinja2 --upgrade