contrib/ansible: Add extra_server_args variable

Signed-off-by: Julien DOCHE <julien.doche@gmail.com>
This commit is contained in:
Julien DOCHE 2020-02-17 21:01:53 +01:00
parent fd891d0bd9
commit cddcbe7833
2 changed files with 2 additions and 1 deletions

View File

@ -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: ""

View File

@ -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