mirror of https://github.com/Aidaho12/haproxy-wi
23 lines
426 B
YAML
23 lines
426 B
YAML
- hosts: "{{ variable_host }}"
|
|
become: yes
|
|
become_method: sudo
|
|
tasks:
|
|
- name: Set SSH port
|
|
set_fact:
|
|
ansible_port: "{{SSH_PORT}}"
|
|
|
|
- name: Open stat port for iptables
|
|
iptables:
|
|
chain: INPUT
|
|
destination_port: "9100"
|
|
jump: ACCEPT
|
|
protocol: tcp
|
|
ignore_errors: yes
|
|
|
|
|
|
roles:
|
|
- role: node_exporter
|
|
environment:
|
|
http_proxy: "{{PROXY}}"
|
|
https_proxy: "{{PROXY}}"
|