File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 141141- name : " Verify Keepalived configuration."
142142 become : true
143143 ansible.builtin.command :
144- cmd : " {{ keepalived_executable_path | quote }} --config-test {{ keepalived_conf_file_path | quote }}"
144+ cmd : " {{ keepalived_executable_path | quote }} --config-test --use-file {{ keepalived_conf_file_path | quote }}"
145145 register : " config_check"
146146 changed_when : " config_check.rc != 0"
147147
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ RuntimeDirectory=keepalived
1515PIDFile={{ keepalived_pid_file_path }}
1616KillMode=process
1717EnvironmentFile=-{{ keepalived_sysconfig_file_path }}
18- ExecStart={{ keepalived_executable_path }} -p {{ keepalived_pid_file_path }} $KEEPALIVED_OPTIONS
18+ ExecStart={{ keepalived_executable_path }} -p {{ keepalived_pid_file_path }} --use-file {{ keepalived_conf_file_path }} $KEEPALIVED_OPTIONS
1919ExecReload=/bin/kill -HUP $MAINPID
2020
2121[Install]
You can’t perform that action at this time.
0 commit comments