Skip to content

Commit

Permalink
orahost: Fix warning conditional statements should not include jinja2…
Browse files Browse the repository at this point in the history
… templating
  • Loading branch information
Rendanic committed Dec 5, 2023
1 parent 092749f commit eefa88a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/assert.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- "orahost: Fix warning conditional statements should not include jinja2 templating (oravirt#391)"
4 changes: 2 additions & 2 deletions roles/orahost/tasks/assert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
ansible.builtin.assert:
quiet: true
that:
- "ansible_os_family == '{{ os_family_supported }}'"
- "ansible_facts['distribution_version'] is version('{{ os_min_supported_version }}', '>=')"
- ansible_os_family == os_family_supported
- ansible_facts['distribution_version'] is version(os_min_supported_version, '>=')
tags:
- oscheck

Expand Down

0 comments on commit eefa88a

Please sign in to comment.