2018-12-22 13:55:51 +00:00
|
|
|
---
|
2018-12-23 10:28:27 +00:00
|
|
|
- name: install docker package
|
2021-11-22 09:05:06 +00:00
|
|
|
ansible.builtin.package:
|
2021-11-22 10:28:13 +00:00
|
|
|
name:
|
|
|
|
- docker.io
|
|
|
|
- python3-docker
|
2021-11-22 10:43:06 +00:00
|
|
|
tags: swarm
|
2018-12-22 13:55:51 +00:00
|
|
|
|
2022-04-06 08:17:32 +00:00
|
|
|
- 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
|
|
|
|
|
2019-08-24 10:55:56 +00:00
|
|
|
- name: enable and start service
|
2021-11-22 09:05:06 +00:00
|
|
|
ansible.builtin.service:
|
2019-08-24 10:55:56 +00:00
|
|
|
name: docker
|
|
|
|
state: started
|
2021-11-22 10:43:06 +00:00
|
|
|
tags: swarm
|