---
# tasks file for docker_toolbox(On Debian family)
- name: Download install script for Docker Engine
  get_url: url="https://get.docker.com" dest="{{ docker_installscript_tmppath }}"
  register: dl_result
- name: Install Docker Engine
  shell: "sh {{ docker_installscript_tmppath }}"
  become: yes
  when: dl_result.changed
- name: Install Docker Machine
  get_url: url="{{ docker_machine_download_url }}" checksum="sha256:{{ docker_machine_sha256 }}" dest="{{ docker_machine_bin_path }}" mode="0755"
  become: yes
- name: Install Docker Compose
  get_url: url="{{ docker_compose_download_url }}" checksum="sha256:{{ docker_compose_sha256 }}" dest="{{ docker_compose_bin_path }}" mode="0755"
  become: yes


---
# tasks file for docker_toolbox(On Debian family)
- name: Add key for Docker repository
  apt_key: url=https://get.docker.com/gpg
  become: yes
- name: Download install script for Docker Engine
  get_url: url="https://get.docker.com" dest="{{ docker_installscript_tmppath }}"
  register: dl_result
- name: Install Docker Engine
  shell: "sh {{ docker_installscript_tmppath }}"
  become: yes
  when: dl_result.changed
- name: Install Docker Machine
  get_url: url="{{ docker_machine_download_url }}" checksum="sha256:{{ docker_machine_sha256 }}" dest="{{ docker_machine_bin_path }}" mode="0755"
  become: yes
- name: Install Docker Compose
  get_url: url="{{ docker_compose_download_url }}" checksum="sha256:{{ docker_compose_sha256 }}" dest="{{ docker_compose_bin_path }}" mode="0755"
  become: yes


Add gpg key for Docker site maunually.
Add gpg key for Docker site maunually.
