This repository has been archived on 2019-07-18. You can view files and clone it, but cannot push or open issues/pull-requests.
wsl-ansible-playbooks/roles/docker/tasks/main.yml

20 lines
852 B
YAML
Raw Normal View History

2019-07-09 17:12:53 -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 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
- name: install apt applications
apt:
name: virt-manager,virt-top,docker-ce
state: present