rice/docker-host/roles/setup/tasks/install-docker.yml

30 lines
499 B
YAML

---
- hosts: leftcoastlab
become: yes
tasks:
- name: Install docker dependencies
apt:
name: "{{item}}"
update_cache: yes
loop:
- apt-transport-https
- ca-certificates
- curl
- gnupg
- software-properties-common
- lsb-release
- python3-pip
- name: Install Docker
apt:
name: docker.io
update_cache: yes
- name: Install Docker Ansible Driver
pip:
name: docker