Skip to content
Snippets Groups Projects
Commit d84d1a50 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-playbooks/general#85 Fix some conditionals

parent 2339b4e4
No related branches found
No related tags found
No related merge requests found
......@@ -4,8 +4,8 @@
- name: Check HAProxy Config
command: haproxy -c -f /etc/haproxy/haproxy.cfg
register: haproxy_config_check
changed_when: yes and 'Configuration file is valid' in haproxy_config_check.stdout_lines
failed_when: yes and 'Configuration file is valid' not in haproxy_config_check.stdout_lines
changed_when: '"Configuration file is valid" in haproxy_config_check.stdout_lines'
failed_when: '"Configuration file is valid" not in haproxy_config_check.stdout_lines'
notify:
- Restart HAProxy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment