diff --git a/changelogs/fragments/assert.yml b/changelogs/fragments/assert.yml new file mode 100644 index 000000000..143c820d7 --- /dev/null +++ b/changelogs/fragments/assert.yml @@ -0,0 +1,3 @@ +--- +bugfixes: + - "orahost: Fix warning conditional statements should not include jinja2 templating (oravirt#391)" diff --git a/roles/orahost/tasks/assert.yml b/roles/orahost/tasks/assert.yml index 83f81fac8..adb9e1979 100644 --- a/roles/orahost/tasks/assert.yml +++ b/roles/orahost/tasks/assert.yml @@ -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