forked from LandmakTechnology/k8s-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkube-dependencies.yml
44 lines (38 loc) · 1013 Bytes
/
kube-dependencies.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
- hosts: Kubernetes_Servers
become: yes
tasks:
- name: Docker Installation
apt:
name: docker.io
state: present
update_cache: true
- name: install APT Transport HTTPS
apt:
name: apt-transport-https
state: present
- name: add Kubernetes apt-key for APT repository
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: install kubelet
apt:
name: kubelet=1.18.3-00
state: present
update_cache: true
- name: install kubeadm
apt:
name: kubeadm=1.18.3-00
state: present
- hosts: Kubernetes_Master
become: yes
tasks:
- name: install kubectl
apt:
name: kubectl=1.18.3-00
state: present
force: yes