mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-22 12:35:51 +00:00
Avoid set_fact with error message to prevent confusion
This commit is contained in:
parent
3818d82852
commit
3d702fe03b
@ -1,19 +1,11 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- set_fact:
|
|
||||||
matrix_ansible_outdated_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"
|
|
||||||
|
|
||||||
- name: Fail if running on Ansible < 2.5
|
|
||||||
fail:
|
|
||||||
msg: "{{ matrix_ansible_outdated_fail_msg }}"
|
|
||||||
when: "ansible_version.major <= 2 and ansible_version.minor < 5"
|
|
||||||
|
|
||||||
# Ansible 2.5.0 and 2.5.1 are known to have a bug with `include_tasks` + `with_items`.
|
# Ansible 2.5.0 and 2.5.1 are known to have a bug with `include_tasks` + `with_items`.
|
||||||
# The bug has been fixed in Ansible 2.5.2.
|
# The bug has been fixed in Ansible 2.5.2.
|
||||||
- name: Fail if running on Ansible 2.5.x (lower than 2.5.2)
|
- name: Fail if running on Ansible < 2.5 or Ansible 2.5.x (lower than 2.5.2)
|
||||||
fail:
|
fail:
|
||||||
msg: "{{ matrix_ansible_outdated_fail_msg }}"
|
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 and ansible_version.minor == 5 and ansible_version.revision < 2"
|
when: "(ansible_version.major <= 2 and ansible_version.minor < 5) or (ansible_version.major == 2 and ansible_version.minor == 5 and ansible_version.revision < 2)"
|
||||||
|
|
||||||
- name: (Deprecation) Catch and report renamed settings
|
- name: (Deprecation) Catch and report renamed settings
|
||||||
fail:
|
fail:
|
||||||
|
Loading…
Reference in New Issue
Block a user