40 lines
778 B
YAML
40 lines
778 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
|
||
|
|
||
|
- name: Install docker GPG key
|
||
|
apt_key:
|
||
|
url: https://download.docker.com/linux/ubuntu/gpg
|
||
|
state: present
|
||
|
|
||
|
- name: Add Docker Apt Repo
|
||
|
apt_repository:
|
||
|
repo: deb https://download.docker.com/linux/ubuntu impish stable
|
||
|
state: present
|
||
|
|
||
|
- name: Install Docker components
|
||
|
apt:
|
||
|
name: "{{item}}"
|
||
|
update_cache: yes
|
||
|
loop:
|
||
|
- docker-ce
|
||
|
- docker-ce-cli
|
||
|
- containerd.io
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|