Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ galaxy_info:
description: HAProxy loadbalancer
company: Sointeractive
license: MIT
min_ansible_version: 2.2
min_ansible_version: 2.4
platforms:
- name: Ubuntu
versions:
Expand Down
7 changes: 3 additions & 4 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@

- name: Install HAProxy Packages
package:
name: "{{ item }}"
state: "installed"
name: "{{ haproxy_distro_packages }}"
state: present
register: install_packages
until: install_packages|success
until: install_packages is success
retries: 5
delay: 2
with_items: "{{ haproxy_distro_packages }}"

- name: Create haproxy conf.d dir
file:
Expand Down
2 changes: 1 addition & 1 deletion tasks/install_hatop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Install HATop from repository
package:
name: hatop
state: installed
state: present
when: ansible_os_family == "Debian"

- block:
Expand Down
2 changes: 1 addition & 1 deletion templates/haproxy_exporter.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ After=network.target
[Service]
Type=simple
PIDFile=/var/run/haproxy_exporter.pid
ExecStart=/opt/haproxy_exporter/haproxy_exporter {% for flag, flag_value in haproxy_exporter_config_flags.iteritems() %}{{ '-' if (haproxy_exporter_version |version_compare('0.8.0', '>=')) else ''}}-{{ flag }}={{ flag_value }} {% endfor %}
ExecStart=/opt/haproxy_exporter/haproxy_exporter {% for flag, flag_value in haproxy_exporter_config_flags.iteritems() %}{{ '-' if (haproxy_exporter_version is version_compare('0.8.0', '>=')) else ''}}-{{ flag }}={{ flag_value }} {% endfor %}

SyslogIdentifier=haproxy_exporter
Restart=always
Expand Down