Add ExecStartPre to ansible systemd node unit files

This commit is contained in:
Arpan Kapoor 2020-03-01 19:32:19 +05:30
parent 4f57cdd5e0
commit d01978147e
No known key found for this signature in database
GPG Key ID: 2A7CF43212493E08

View File

@ -5,6 +5,8 @@ After=network-online.target
[Service]
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'] }}
KillMode=process
Delegate=yes