2020-12-21 23:16:11 +00:00
|
|
|
---
|
|
|
|
- name: Install docker
|
|
|
|
apt:
|
|
|
|
update_cache: true
|
|
|
|
name:
|
|
|
|
- docker
|
|
|
|
- docker.io
|
|
|
|
- docker-compose
|
|
|
|
state: present
|
|
|
|
register: apt_result
|
|
|
|
retries: 3
|
|
|
|
until: apt_result is succeeded
|
|
|
|
|
|
|
|
- name: Indicate role in motd
|
|
|
|
template:
|
|
|
|
src: update-motd.d/05-service.j2
|
|
|
|
dest: /etc/update-motd.d/05-docker
|
2021-03-17 23:25:44 +00:00
|
|
|
owner: root
|
|
|
|
group: root
|
2020-12-21 23:16:11 +00:00
|
|
|
mode: 0755
|