21 lines
362 B
YAML
21 lines
362 B
YAML
|
---
|
||
|
- become: yes
|
||
|
block:
|
||
|
- name: install needed packages
|
||
|
apt:
|
||
|
update_cache: yes
|
||
|
pkg:
|
||
|
- docker.io
|
||
|
|
||
|
- name: start and enable docker
|
||
|
systemd:
|
||
|
name: docker
|
||
|
state: started
|
||
|
enabled: true
|
||
|
|
||
|
- name: add current user to docker group
|
||
|
user:
|
||
|
name: "{{ ansible_user_id }}"
|
||
|
append: yes
|
||
|
groups: docker
|