ansible-role-swarm/tasks/install.yml

23 lines
439 B
YAML

---
- name: Install docker package
ansible.builtin.package:
name:
- docker.io
- python3-docker
tags: swarm
- name: Copy default variables file
ansible.builtin.template:
src: default.j2
dest: /etc/default/docker
owner: root
group: root
mode: 0644
notify: Restart docker
tags: swarm
- name: Enable and start service
ansible.builtin.service:
name: docker
state: started
tags: swarm