mirror of https://github.com/Aidaho12/haproxy-wi
13 lines
358 B
YAML
13 lines
358 B
YAML
![]() |
- hosts: "{{ variable_host }}"
|
||
|
become: yes
|
||
|
become_method: sudo
|
||
|
tasks:
|
||
|
- name: Set SSH port
|
||
|
set_fact:
|
||
|
ansible_port: "{{SSH_PORT}}"
|
||
|
|
||
|
roles:
|
||
|
- role: bdellegrazie.haproxy_exporter
|
||
|
vars:
|
||
|
haproxy_exporter_options: ['--haproxy.scrape-uri=http://{{STATS_USER}}:{{STATS_PASS}}@{{variable_host}}:{{STAT_PORT}}/{{STAT_PAGE}};csv']
|