-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup_docker.yml
51 lines (44 loc) · 1.15 KB
/
setup_docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
- name: Install Docker
hosts: _manager:_worker:_worker_gpu:_manual
become: true
tasks:
- name: Install required packages for Docker
apt:
name:
- apt-transport-https
- ca-certificates
- curl
- gnupg-agent
- software-properties-common
state: present
- name: Add Docker GPG key
apt_key:
url: https://download.docker.com/linux/ubuntu/gpg
state: present
- name: Add Docker repository
apt_repository:
repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
state: present
- name: Install Docker
apt:
name: docker-ce
state: present
- name: Install pip
apt:
name: python3-pip
state: present
- name: Install Docker SDK for Python
pip:
name: docker
state: present
executable: pip3
- name: Install Docker Compose for Python
pip:
name: docker-compose
state: present
executable: pip3
- name: Install jsondiff for Python
pip:
name: jsondiff
state: present
executable: pip3