deploy-base/roles/docker/tasks/main.yml

13 lines
290 B
YAML

---
# depends on create-user role / create_username var
- name: "Install Docker"
ansible.builtin.package:
name: "{{ docker_pkgs[ansible_distribution] }}"
state: present
- name: Enable/start docker
ansible.builtin.service:
name: docker
state: started
enabled: true