ansible-machine-setup/roles/docker/tasks/main.yaml

21 lines
325 B
YAML
Raw Normal View History

2021-01-30 13:34:28 +00:00
---
- name: install packages
package:
name:
- docker
- docker-compose
state: latest
- name: activate daemon
systemd:
name: docker
enabled: yes
state: started
- name: add user to docker group
user:
name: "{{ account.name }}"
groups: docker
append: yes