mirror of
https://github.com/Maks1mS/ansible-role-docker.git
synced 2024-12-24 16:44:41 +03:00
Only fetch docker-compose if current version is not the desired version
This commit is contained in:
parent
a977b06b7b
commit
c2f737d5a2
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Check current docker-compose version.
|
- name: Check current docker-compose version.
|
||||||
command: docker-compose --version
|
command: "{{ docker_compose_path }} --version"
|
||||||
register: docker_compose_current_version
|
register: docker_compose_current_version
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
@ -18,3 +18,6 @@
|
|||||||
url: "{{ docker_compose_url }}"
|
url: "{{ docker_compose_url }}"
|
||||||
dest: "{{ docker_compose_path }}"
|
dest: "{{ docker_compose_path }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
when: >
|
||||||
|
docker_compose_current_version.stdout is not defined
|
||||||
|
or docker_compose_version not in docker_compose_current_version.stdout
|
||||||
|
Loading…
Reference in New Issue
Block a user