Compare commits

..

No commits in common. "cfa8180c1882b7946c3a5b6773176ce4f116cf12" and "0c02bc3a32f38020eabfd6e75e583b46f901ea59" have entirely different histories.

3 changed files with 9 additions and 16 deletions

View file

@ -6,6 +6,5 @@ kubernetes_interface: '{{ ansible_default_ipv4.interface }}'
# value for kuberntes_network: flannel, calico, weave-net
#kubernetes_network: weave-net
kubernetes_kubeproxy_mode: ipvs
kubernetes_version: 1.21.4
kubernetes_pods_network: "10.244.0.0/16"
lb_auth_pass: 1be344d62acc46c6858ae8475668a245
kubernetes_version: 1.21.2
kubernetes_pods_network: "10.244.0.0/16"

View file

@ -29,7 +29,7 @@
- name: retreive k3s binary for x86_64
get_url:
url: "https://github.com/rancher/k3s/releases/download/v1.21.4%2Bk3s1/k3s"
url: "https://github.com/rancher/k3s/releases/download/v1.20.6%2Bk3s1/k3s"
dest: "/usr/local/bin/k3s"
group: root
owner: root
@ -40,7 +40,7 @@
- name: retreive k3s binary for arm64
get_url:
url: "https://github.com/rancher/k3s/releases/download/v1.21.4%2Bk3s1/k3s-arm64"
url: "https://github.com/rancher/k3s/releases/download/v1.20.6%2Bk3s1/k3s-arm64"
dest: "/usr/local/bin/k3s"
group: root
owner: root
@ -51,7 +51,7 @@
- name: retreive k3s binary for armv6/armv7
get_url:
url: "https://github.com/rancher/k3s/releases/download/v1.21.4%2Bk3s1/k3s-armhf"
url: "https://github.com/rancher/k3s/releases/download/v1.20.6%2Bk3s1/k3s-armhf"
dest: "/usr/local/bin/k3s"
group: root
owner: root
@ -151,10 +151,6 @@
when:
- ansible_service_mgr == "systemd"
- name: Reload systemd
ansible.builtin.systemd:
daemon_reload: yes
- name: Enable k3s on boot
service:
name: k3s

View file

@ -1,11 +1,12 @@
---
- name: Install needed packages
package:
name:
- keepalived
- curl
name: "{{ item }}"
state: present
update_cache: yes
with_items:
- keepalived
- curl
notify: Restart keepalived
- name: Install check_apiserver.sh script for keepalived
template:
@ -38,6 +39,3 @@
when:
- not groups['KubernetesMasters'][0] == ansible_hostname
notify: Restart keepalived
- name: Flush handlers
meta: flush_handlers