some changes

This commit is contained in:
Jens Heinitz 2021-11-12 18:44:33 +01:00
parent f7857cd5eb
commit 5abaf1febe
11 changed files with 10 additions and 7 deletions

View File

@ -1,5 +1,6 @@
---
k3s_version: v1.17.5+k3s1
#k3s_version: v1.17.5+k3s1
k3s_version: v1.21.4+k3s1
ansible_user: pi
systemd_dir: /etc/systemd/system
master_ip: "{{ hostvars[groups['k3s_master'][0]]['ansible_host'] | default(groups['k3s_master'][0]) }}"

View File

@ -4,16 +4,16 @@
gather_facts: yes
become: yes
roles:
- role: prereq
- role: download
- role: raspberrypi
- role: k3s_prereq
- role: k3s_download
- role: k3s_raspberrypi
- hosts: master
- hosts: k3s_master
become: yes
roles:
- role: k3s/master
- hosts: node
- hosts: k3s_nodes
become: yes
roles:
- role: k3s/node

View File

@ -7,7 +7,7 @@ After=network-online.target
Type=notify
ExecStartPre=-/sbin/modprobe br_netfilter
ExecStartPre=-/sbin/modprobe overlay
ExecStart=/usr/local/bin/k3s agent --server https://{{ master_ip }}:6443 --token {{ hostvars[groups['master'][0]]['token'] }} {{ extra_agent_args | default("") }}
ExecStart=/usr/local/bin/k3s agent --server https://{{ master_ip }}:6443 --token {{ hostvars[groups['k3s_master'][0]]['token'] }} {{ extra_agent_args | default("") }}
KillMode=process
Delegate=yes
# Having non-zero Limit*s causes performance problems due to accounting overhead

View File

@ -17,9 +17,11 @@
path: /usr/sbin/iptables-legacy
name: iptables
register: ip4_legacy
when: ansible_distribution_major_version|int > 9
- name: Changing to ip6tables-legacy
alternatives:
path: /usr/sbin/ip6tables-legacy
name: ip6tables
register: ip6_legacy
when: ansible_distribution_major_version|int > 9