Add support for checksum validation of downloaded docker-compose

This commit is contained in:
Chris Francy 2019-03-06 11:07:29 -08:00 committed by root
parent fa1a56824e
commit 8c473f5a8d
3 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,7 @@ Variables to control the state of the `docker` service, and whether it should st
docker_install_compose: true docker_install_compose: true
docker_compose_version: "1.22.0" docker_compose_version: "1.22.0"
docker_compose_checksum: "sha256:4d618e19b91b9a49f36d041446d96a1a0a067c676330a4f25aca6bbd000de7a9"
docker_compose_path: /usr/local/bin/docker-compose docker_compose_path: /usr/local/bin/docker-compose
Docker Compose installation options. Docker Compose installation options.

View File

@ -12,6 +12,7 @@ docker_restart_handler_state: restarted
# Docker Compose options. # Docker Compose options.
docker_install_compose: true docker_install_compose: true
docker_compose_version: "1.22.0" docker_compose_version: "1.22.0"
docker_compose_checksum: "sha256:f679a24b93f291c3bffaff340467494f388c0c251649d640e661d509db9d57e9"
docker_compose_path: /usr/local/bin/docker-compose docker_compose_path: /usr/local/bin/docker-compose
# Used only for Debian/Ubuntu. Switch 'stable' to 'edge' if needed. # Used only for Debian/Ubuntu. Switch 'stable' to 'edge' if needed.

View File

@ -17,4 +17,5 @@
get_url: get_url:
url: https://github.com/docker/compose/releases/download/{{ docker_compose_version }}/docker-compose-Linux-x86_64 url: https://github.com/docker/compose/releases/download/{{ docker_compose_version }}/docker-compose-Linux-x86_64
dest: "{{ docker_compose_path }}" dest: "{{ docker_compose_path }}"
checksum: "{{ docker_compose_checksum | default(omit) }}"
mode: 0755 mode: 0755