2024-03-09 22:36:26 +00:00
|
|
|
# {{ ansible_managed }}
|
2024-03-09 21:34:20 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Keepalive Daemon (LVS and VRRP)
|
|
|
|
After=network-online.target
|
|
|
|
Wants=network-online.target
|
|
|
|
ConditionFileNotEmpty={{ deploy_keepalived_config_dir }}/keepalived.conf
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
# Type=notify
|
2024-03-09 22:36:26 +00:00
|
|
|
EnvironmentFile=-{{ deploy_keepalived_config_dir }}/keepalived.env
|
2024-03-09 21:34:20 +00:00
|
|
|
ExecStart={{ deploy_keepalived_path }} -f {{ deploy_keepalived_config_dir }}/keepalived.conf --dont-fork $DAEMON_ARGS
|
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|