Merge pull request #769 from aaronraimist/check-for-buggy-ansible

Check for buggy version of Ansible that Ubuntu 20.04 provides
This commit is contained in:
Slavi Pantaleev
2020-12-29 11:19:37 +02:00
committed by GitHub
2 changed files with 9 additions and 1 deletions

View File

@ -6,6 +6,14 @@
msg: "You are running on Ansible {{ ansible_version.string }}, which is not supported. See our guide about Ansible: https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/docs/ansible.md"
when: "(ansible_version.major < 2) or (ansible_version.major <= 2 and ansible_version.minor < 7)"
# Though we do not support Ansible 2.9.6 which is buggy
- name: Fail if running on Ansible 2.9.6 on Ubuntu
fail:
msg: "You are running on Ansible {{ ansible_version.string }}, which is not supported. See our guide about Ansible: https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/docs/ansible.md"
when:
- ansible_distribution == 'Ubuntu'
- "ansible_version.major == 2 and ansible_version.major == 9 and ansible_version.minor == 6"
- name: (Deprecation) Catch and report renamed settings
fail:
msg: >-