ansible/roles/docker/tasks/install-docker-io.yml

21 lines
362 B
YAML
Raw Normal View History

2022-06-04 20:55:54 +00:00
---
- 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