diff --git a/contrib/ansible/inventory/group_vars/all.yml b/contrib/ansible/inventory/group_vars/all.yml index 7cf5c5f546..d80065e7ea 100644 --- a/contrib/ansible/inventory/group_vars/all.yml +++ b/contrib/ansible/inventory/group_vars/all.yml @@ -2,3 +2,4 @@ k3s_version: v0.8.1 ansible_user: debian systemd_dir: /etc/systemd/system master_ip: "{{ hostvars[groups['master'][0]]['ansible_host'] | default(groups['master'][0]) }}" +extra_server_args: "" diff --git a/contrib/ansible/roles/k3s/master/templates/k3s.service.j2 b/contrib/ansible/roles/k3s/master/templates/k3s.service.j2 index d8b9c18c14..89fd61c8ab 100644 --- a/contrib/ansible/roles/k3s/master/templates/k3s.service.j2 +++ b/contrib/ansible/roles/k3s/master/templates/k3s.service.j2 @@ -5,7 +5,7 @@ After=network-online.target [Service] ExecStartPre=-/sbin/modprobe br_netfilter ExecStartPre=-/sbin/modprobe overlay -ExecStart=/usr/local/bin/k3s server +ExecStart=/usr/local/bin/k3s server {{ extra_server_args | default("") }} KillMode=process Delegate=yes LimitNOFILE=infinity