Do not run self-build Ansible version-check, if component not enabled

Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1108
This commit is contained in:
Slavi Pantaleev
2021-06-08 08:59:02 +03:00
parent bec9eaeb50
commit fa76c1ee5b
22 changed files with 22 additions and 22 deletions

View File

@ -7,4 +7,4 @@
- name: Fail if trying to self-build on Ansible < 2.8
fail:
msg: "To self-build the Element image, you should use Ansible 2.8 or higher. See docs/ansible.md"
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_client_element_container_image_self_build"
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_client_element_container_image_self_build and matrix_client_element_enabled"