-
Notifications
You must be signed in to change notification settings - Fork 2
/
cluster-dependencies.yaml
106 lines (106 loc) · 2.93 KB
/
cluster-dependencies.yaml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
- hosts: workers
become: yes
tasks:
- name: Installing prerequisites
apt: name={{item}} update_cache=yes
with_items:
- apt-transport-https
- ca-certificates
- curl
- software-properties-common
- name: Add Docker GPG key
apt_key: url=https://download.docker.com/linux/ubuntu/gpg
- name: Add Docker APT repository
apt_repository:
repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ansible_distribution_release}} stable
- name: Installing Docker
apt:
name: docker-ce=18.06.3~ce~3-0~ubuntu
state: present
update_cache: true
- name: Installing APT Transport HTTPS
apt:
name: apt-transport-https
state: present
- name: add Kubernetes apt-key
apt_key:
url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
state: present
- name: add Kubernetes' APT repository
apt_repository:
repo: deb http://apt.kubernetes.io/ kubernetes-xenial main
state: present
filename: 'kubernetes'
- name: Installing kubectl
apt:
name: kubectl=1.13.5-00
state: present
update_cache: true
- name: Installing kubelet
apt:
name: kubelet=1.13.5-00
state: present
update_cache: true
- name: Installing kubeadm
apt:
name: kubeadm=1.13.5-00
state: present
update_cache: true
- hosts: master
become: yes
tasks:
- name: Installing prerequisites
apt: name={{item}} update_cache=yes
with_items:
- apt-transport-https
- ca-certificates
- curl
- software-properties-common
run_once: true
- name: Add Docker GPG key
apt_key: url=https://download.docker.com/linux/ubuntu/gpg
run_once: true
- name: Add Docker APT repository
apt_repository:
repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ansible_distribution_release}} stable
run_once: true
- name: Installing Docker
apt:
name: docker-ce=18.06.3~ce~3-0~ubuntu
state: present
update_cache: true
run_once: true
- name: Installing APT Transport HTTPS
apt:
name: apt-transport-https
state: present
run_once: true
- name: add Kubernetes apt-key
apt_key:
url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
state: present
run_once: true
- name: add Kubernetes' APT repository
apt_repository:
repo: deb http://apt.kubernetes.io/ kubernetes-xenial main
state: present
filename: 'kubernetes'
run_once: true
- name: Installing kubectl
apt:
name: kubectl=1.13.5-00
state: present
update_cache: true
run_once: true
- name: Installing kubelet
apt:
name: kubelet=1.13.5-00
state: present
update_cache: true
run_once: true
- name: Installing kubeadm
apt:
name: kubeadm=1.13.5-00
state: present
update_cache: true
run_once: true