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

ansible-playbooks/general#85 Linting

parent 9b4173d1
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: "Configuration file is valid" in haproxy_config_check.stdout_lines
failed_when: "Configuration file is valid" not in haproxy_config_check.stdout_lines
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
notify:
- Restart HAProxy
......
......@@ -10,4 +10,4 @@
when: item.letsencrypt|default(false) and item.active|default(true)
ignore_errors: yes
notify:
- "Restart HAProxy"
- Restart HAProxy
......@@ -7,7 +7,7 @@
state: present
mode: 0644
with_items:
- "ppa:vbernat/haproxy-1.8"
- ppa:vbernat/haproxy-1.8
- name: Install some packages
apt:
......
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