23 lines
409 B
YAML
23 lines
409 B
YAML
|
|
---
|
||
|
|
- hosts: all
|
||
|
|
become: true
|
||
|
|
|
||
|
|
tasks:
|
||
|
|
- name: Install required packages
|
||
|
|
apt:
|
||
|
|
name:
|
||
|
|
- ca-certificates
|
||
|
|
- curl
|
||
|
|
update_cache: yes
|
||
|
|
|
||
|
|
- name: Install Docker
|
||
|
|
shell: curl -fsSL https://get.docker.com | sh
|
||
|
|
args:
|
||
|
|
creates: /usr/bin/docker
|
||
|
|
|
||
|
|
- name: Enable Docker
|
||
|
|
systemd:
|
||
|
|
name: docker
|
||
|
|
enabled: true
|
||
|
|
state: started
|