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