Skip to content

Fix #389 : Replace check with Ansible version comparison - #395

Open
James Flynn (james-flynn-ie) wants to merge 1 commit into
Azure:masterfrom
james-flynn-ie:fix/ansible-version-check
Open

Fix #389 : Replace check with Ansible version comparison#395
James Flynn (james-flynn-ie) wants to merge 1 commit into
Azure:masterfrom
james-flynn-ie:fix/ansible-version-check

Conversation

@james-flynn-ie

Copy link
Copy Markdown

Fix for #389. The String comparison method was broken when the Ansible version rolled over to 2.10.0, since it was comparing Strings rather than version numbers.

Ansible's version comparison function (https://docs.ansible.com/ansible/latest/user_guide/playbooks_tests.html#comparing-versions) fixes this issue.

Will also resolve Azure-Samples/ansible-playbooks#88, which depends on this role.

Previous String check was broken when version rolled over to 2.10.0, since it was comparing Strings rather than version numbers.

Ansible's version comparison function (https://docs.ansible.com/ansible/latest/user_guide/playbooks_tests.html#comparing-versions) fixes this issue.
@TheTechOddBug

Please https://twitter.com/Azure, review and approve!

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

Successfully merging this pull request may close these issues.

keyvault_create.yml: azure_preview_modules reports Ansible version < 2.5.0, when version is 2.10.9

2 participants