We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2694ffd commit 97b26f9Copy full SHA for 97b26f9
roles/keepalived/tasks/main.yml
@@ -138,15 +138,9 @@
138
owner: "root"
139
group: "root"
140
mode: "0644"
141
+ validate: "{{ __keepalived_binary.stat.exists | ternary(keepalived_executable_path ~ ' --config-test --use-file %s', omit) }}"
142
notify: "Reload Keepalived"
143
-- name: "Verify Keepalived configuration."
144
- become: true
145
- ansible.builtin.command:
146
- cmd: "{{ keepalived_executable_path | quote }} --config-test --use-file {{ keepalived_conf_file_path | quote }}"
147
- register: "__config_check"
148
- changed_when: "__config_check.rc != 0"
149
-
150
- name: "Create Keepalived Service Unit File."
151
ansible.builtin.template:
152
src: "{{ keepalived_service_template }}"
0 commit comments