mirror of https://github.com/Aidaho12/haproxy-wi
18 lines
419 B
YAML
18 lines
419 B
YAML
- hosts: all
|
|
become: yes
|
|
become_method: sudo
|
|
tasks:
|
|
|
|
- name: Open stat port for iptables
|
|
iptables:
|
|
chain: INPUT
|
|
destination_port: "9101"
|
|
jump: ACCEPT
|
|
protocol: tcp
|
|
ignore_errors: yes
|
|
|
|
roles:
|
|
- role: haproxy_exporter
|
|
vars:
|
|
haproxy_exporter_options: ['--haproxy.scrape-uri=http://{{STATS_USER}}:{{STATS_PASS}}@{{ansible_host}}:{{STAT_PORT}}/{{STAT_PAGE}};csv']
|