Various integration tests are gated based on the Ansible version, e.g.
|
- meta: end_play |
|
when: |
|
- ansible_version.full is version('2.6', '<', strict=True) |
.
This fails when the ansible-core version under test is a release condidate, version(..., strict=True) accepts "1.2.3", "1.2.3a1", or "1.2.3b1". It doesn't accept "1.2.3rc1". Ansible 4 (ansible-core 2.11) added version(..., version_type=...). Ansible 7 (ansible-core 2.14) added version(..., version_type='pep440').
See
Various integration tests are gated based on the Ansible version, e.g.
mitogen/tests/ansible/regression/issue_109__target_has_old_ansible_installed.yml
Lines 8 to 10 in 98ae5e2
This fails when the ansible-core version under test is a release condidate,
version(..., strict=True)accepts"1.2.3","1.2.3a1", or"1.2.3b1". It doesn't accept"1.2.3rc1". Ansible 4 (ansible-core 2.11) addedversion(..., version_type=...). Ansible 7 (ansible-core 2.14) addedversion(..., version_type='pep440').See