Skip to content

Instantly share code, notes, and snippets.

@alvaroaleman
Created May 10, 2016 13:49
Show Gist options
  • Save alvaroaleman/dd754090f72132674a8f9ab65d415033 to your computer and use it in GitHub Desktop.
Save alvaroaleman/dd754090f72132674a8f9ab65d415033 to your computer and use it in GitHub Desktop.
---
- hosts: localhost
vars:
file: /tmp/docker_compose
tasks:
- name: Create file with wrong checksum
copy:
dest: "{{ file }}"
content: 'Filecontent'
- name: Run get_url
get_url:
url: "https://github.com/docker/compose/releases/download/1.7.0/docker-compose-Linux-x86_64"
dest: "{{ file }}"
checksum: "sha256:3166bb74bc648e68c3154bc704fddf6bccf59f03a0c90fc48aefac034535e4ae"
mode: "0755"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment