ansible-desktop/roles/docker/tasks/install-docker-io.yml
2020-07-01 17:30:42 +02:00

22 lines
470 B
YAML

---
- name: install needed packages
become: yes
apt:
update_cache: yes
pkg:
- docker.io
- name: Download docker-compose
become: yes
get_url:
url: https://github.com/docker/compose/releases/download/{{ docker.compose.version }}/docker-compose-Linux-x86_64
dest: /usr/local/bin/docker-compose
mode: 0755
- name: add current user to docker group
become: yes
user:
name: "{{ ansible_user_id }}"
append: yes
groups: docker