ansible-role-swarm/tasks/install.yml

24 lines
439 B
YAML
Raw Normal View History

2018-12-22 13:55:51 +00:00
---
2023-11-23 10:12:18 +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
2023-11-23 10:12:18 +00:00
- name: Copy default variables file
2022-04-06 08:17:32 +00:00
ansible.builtin.template:
src: default.j2
dest: /etc/default/docker
owner: root
group: root
mode: 0644
2023-11-23 10:12:18 +00:00
notify: Restart docker
2022-04-06 08:17:32 +00:00
tags: swarm
2023-11-23 10:12:18 +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