This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
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