-
Notifications
You must be signed in to change notification settings - Fork 0
/
kub_dep.yml
50 lines (42 loc) · 986 Bytes
/
kub_dep.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
- hosts: all
become: yes
tasks:
- name: install yum utils
yum:
name: yum-utils
state: latest
- name: add repo
shell: yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
- name: install Docker
yum:
name: docker
state: present
update_cache: true
skip_broken: yes
- name: install APT Transport HTTPS
yum:
name: varnish
state: present
- name: add Kubernetes repo
ansible.builtin.template:
src: kubernetes.repo
dest: /etc/yum.repos.d/kubernetes.repo
owner: root
group: root
mode: '0644'
- name: install kubelet
yum:
name: kubelet
state: present
update_cache: true
- name: install kubeadm
yum:
name: kubeadm
state: present
- hosts: master
become: yes
tasks:
- name: install kubectl
yum:
name: kubectl
state: latest