2019-05-30 09:53:43 -04:00
|
|
|
---
|
|
|
|
- name: add docker-ce pubkey
|
|
|
|
shell: curl -sL "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x7EA0A9C3F273FCD8" | sudo apt-key add
|
|
|
|
args:
|
|
|
|
warn: False
|
|
|
|
- name: add docker-ce repo
|
|
|
|
apt_repository:
|
|
|
|
repo: "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
|
|
|
|
state: present
|
|
|
|
update_cache: true
|
|
|
|
- name: install apt applications
|
|
|
|
apt:
|
2019-06-03 10:37:29 -04:00
|
|
|
name: libvirt-clients,libvirt-daemon-system,qemu-kvm,virt-manager,virt-top,virt-goodies,vagrant,vagrant-libvirt,vagrant-mutate,xsltproc,fop,docker-ce
|
2019-05-30 09:53:43 -04:00
|
|
|
state: present
|
2019-06-03 10:37:29 -04:00
|
|
|
- name: install docker-compose
|
|
|
|
shell: curl -sLo /tmp/docker-compose https://github.com/docker/compose/releases/download/1.24.0/docker-compose-Linux-x86_64 && install -m 755 /tmp/docker-compose /usr/local/bin/docker-compose-1.24.0 && rm -f /tmp/docker-compose && ln -sf /usr/local/bin/docker-compose-1.24.0 /usr/local/bin/docker-compose
|
|
|
|
args:
|
|
|
|
warn: False
|
|
|
|
creates: /usr/local/bin/docker-compose-1.24.0
|
2019-05-30 09:53:43 -04:00
|
|
|
- name: install docker-machine
|
|
|
|
shell: curl -sLo docker-machine https://github.com/docker/machine/releases/download/v0.16.0/docker-machine-linux-x86_64 && install -m 755 docker-machine /usr/local/bin/docker-machine-0.16.0 && rm -f docker-machine && ln -sf /usr/local/bin/docker-machine-0.16.0 /usr/local/bin/docker-machine
|
|
|
|
args:
|
|
|
|
warn: False
|
|
|
|
creates: /usr/local/bin/docker-machine-0.16.0
|
|
|
|
- name: install docker-machine-driver-kvm2
|
|
|
|
shell: curl -sLo docker-machine-driver-kvm2 https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-kvm2 && install -m 755 docker-machine-driver-kvm2 /usr/local/bin/docker-machine-driver-kvm2 && rm -f docker-machine-driver-kvm2
|
|
|
|
args:
|
|
|
|
warn: False
|
|
|
|
creates: /usr/local/bin/docker-machine-driver-kvm2
|