2020-07-01 11:45:11 +00:00
|
|
|
---
|
|
|
|
- name: install needed packages
|
|
|
|
become: yes
|
|
|
|
apt:
|
|
|
|
update_cache: yes
|
|
|
|
pkg:
|
|
|
|
- docker.io
|
2020-07-01 13:40:35 +00:00
|
|
|
|
|
|
|
- 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
|
2020-07-01 13:43:07 +00:00
|
|
|
|
|
|
|
- name: add current user to docker group
|
2020-07-01 14:49:34 +00:00
|
|
|
become: yes
|
2020-07-01 13:43:07 +00:00
|
|
|
user:
|
2020-07-01 14:42:35 +00:00
|
|
|
name: "{{ ansible_user_id }}"
|
2020-07-01 13:43:07 +00:00
|
|
|
groups: docker
|