Fix self-building for various components on Ansible < 2.8

Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
This commit is contained in:
Slavi Pantaleev
2021-05-20 08:43:20 +03:00
parent dd7a23ede6
commit 1ab507349c
22 changed files with 46 additions and 24 deletions

View File

@ -38,7 +38,8 @@
docker_image:
name: "{{ matrix_coturn_docker_image }}"
source: build
force_source: "{{ matrix_coturn_git_pull_results.changed }}"
force_source: "{{ matrix_coturn_git_pull_results.changed if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
force: "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_coturn_git_pull_results.changed }}"
build:
dockerfile: "{{ matrix_coturn_container_image_self_build_repo_dockerfile_path }}"
path: "{{ matrix_coturn_docker_src_files_path }}"