Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions roles/keepalived/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,9 @@
owner: "root"
group: "root"
mode: "0644"
validate: "{{ __keepalived_binary.stat.exists | ternary(keepalived_executable_path ~ ' --config-test --use-file %s', omit) }}"
notify: "Reload Keepalived"

- name: "Verify Keepalived configuration."
become: true
ansible.builtin.command:
cmd: "{{ keepalived_executable_path | quote }} --config-test --use-file {{ keepalived_conf_file_path | quote }}"
register: "__config_check"
changed_when: "__config_check.rc != 0"

- name: "Create Keepalived Service Unit File."
ansible.builtin.template:
src: "{{ keepalived_service_template }}"
Expand Down