mirror of https://github.com/Aidaho12/haproxy-wi
v8.1.3: Update haproxy.service template for distribution version logic
Adjusted the condition to apply "EXTRAOPTS" only for version 7 of the distribution. This ensures compatibility and prevents unintended configuration for other versions.pull/410/head
parent
05279fa64f
commit
8a99e206d4
|
@ -5,7 +5,7 @@ After=network.target
|
|||
[Service]
|
||||
EnvironmentFile=-/etc/default/haproxy
|
||||
EnvironmentFile=-/etc/sysconfig/haproxy
|
||||
Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid" {% if ansible_facts['distribution_major_version'] != '8' %}"EXTRAOPTS=-S /run/haproxy-master.sock"{% endif %}
|
||||
Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid" {% if ansible_facts['distribution_major_version'] == '7' %}"EXTRAOPTS=-S /run/haproxy-master.sock"{% endif %}
|
||||
|
||||
ExecStartPre=/sbin/haproxy -f $CONFIG -c -q $EXTRAOPTS
|
||||
ExecStart=/sbin/haproxy -Ws -f $CONFIG -p $PIDFILE $EXTRAOPTS
|
||||
|
|
Loading…
Reference in New Issue