Skip to content

Commit

Permalink
Merge pull request #310 from boerngen-schmidt-next/patch-1
Browse files Browse the repository at this point in the history
Added parameter to use specified configuration file
  • Loading branch information
tobiashuste authored Aug 27, 2024
2 parents 47b0735 + f554676 commit a4b34d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion roles/keepalived/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
- name: "Verify Keepalived configuration."
become: true
ansible.builtin.command:
cmd: "{{ keepalived_executable_path | quote }} --config-test {{ keepalived_conf_file_path | quote }}"
cmd: "{{ keepalived_executable_path | quote }} --config-test --use-file {{ keepalived_conf_file_path | quote }}"
register: "config_check"
changed_when: "config_check.rc != 0"

Expand Down
2 changes: 1 addition & 1 deletion roles/keepalived/templates/keepalived.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RuntimeDirectory=keepalived
PIDFile={{ keepalived_pid_file_path }}
KillMode=process
EnvironmentFile=-{{ keepalived_sysconfig_file_path }}
ExecStart={{ keepalived_executable_path }} -p {{ keepalived_pid_file_path }} $KEEPALIVED_OPTIONS
ExecStart={{ keepalived_executable_path }} -p {{ keepalived_pid_file_path }} --use-file {{ keepalived_conf_file_path }} $KEEPALIVED_OPTIONS
ExecReload=/bin/kill -HUP $MAINPID

[Install]
Expand Down

0 comments on commit a4b34d8

Please sign in to comment.