-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRancher_prereq_setup.yml
35 lines (26 loc) · 1.27 KB
/
Rancher_prereq_setup.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
---
- name: satisfy Rancher prereq for K8s cluster install
# per https://computingforgeeks.com/install-kubernetes-production-cluster-using-rancher-rke/
hosts: ubuntu-rke
tasks:
- include_vars: external_vars.yml # where "rke_user: ubuntu"
# ======= How to run w non-root Ansible user:
# [boburciu@r220 Rancher_K8s_prereq]$ cd /home/boburciu/Rancher_K8s_prereq
# [boburciu@r220 Rancher_K8s_prereq]$ ansible-playbook Rancher_prereq_setup.yml -v --become --ask-become-pass
# following https://computingforgeeks.com/install-kubernetes-production-cluster-using-rancher-rke/
- name: 1st, create the passwordless user ubuntu to target host Ubuntu KVM
import_playbook: create_passwordless_user.yml
- name: 2nd, download and enable docker
import_playbook: setup_docker.yml
- name: 3rd, add the new user to docker group
import_playbook: add_user_docker_group.yml
- name: 4th, disable swap memory
import_playbook: disable_swap.yml
- name: 5th, load RKE kernel modules
import_playbook: add_kernel_modules.yml
- name: 6th, change sysctl bridging settings
import_playbook: sysctl_settings.yml
- name: 7th, enable AllowTCPForwarding
import_playbook: allow_tcp_fwd.yml
- name: 8th, enable DNS server for resolving Rancher Server URL
import_playbook: set_dns_Rancher_server.yml