Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no test named 'boolean' #37

Closed
onknows opened this issue Mar 3, 2021 · 2 comments
Closed

no test named 'boolean' #37

onknows opened this issue Mar 3, 2021 · 2 comments

Comments

@onknows
Copy link

onknows commented Mar 3, 2021

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
Copy link
Owner

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

@cubistico
Copy link

cubistico commented Nov 18, 2022

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

sudo pip install jinja2 --upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants