mirror of https://github.com/Aidaho12/haproxy-wi
parent
87657806ab
commit
b3bea63275
|
@ -54,9 +54,6 @@
|
||||||
become: yes
|
become: yes
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
tasks:
|
tasks:
|
||||||
- name: Set SSH port
|
|
||||||
set_fact:
|
|
||||||
ansible_port: "{{SSH_PORT}}"
|
|
||||||
- name: "Set {{ ansible_user }} owner to {{ service_dir }}"
|
- name: "Set {{ ansible_user }} owner to {{ service_dir }}"
|
||||||
file:
|
file:
|
||||||
path: "{{ service_dir }}"
|
path: "{{ service_dir }}"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
- include: preflight.yml
|
- include_tasks: preflight.yml
|
||||||
|
|
||||||
- name: Create the Apache Exporter group
|
- name: Create the Apache Exporter group
|
||||||
become: true
|
become: true
|
||||||
|
|
|
@ -6,13 +6,13 @@
|
||||||
- name: populate service facts
|
- name: populate service facts
|
||||||
service_facts:
|
service_facts:
|
||||||
|
|
||||||
- include: configure.yml
|
- include_tasks: configure.yml
|
||||||
|
|
||||||
- include: installation.yml
|
- include_tasks: installation.yml
|
||||||
|
|
||||||
- include: logs.yml
|
- include_tasks: logs.yml
|
||||||
|
|
||||||
- name: Add syn_flood tasks
|
- name: Add syn_flood tasks
|
||||||
include: syn_flood.yml
|
include_tasks: syn_flood.yml
|
||||||
when: (SYN_FLOOD is defined) and (SYN_FLOOD|length > 0)
|
when: (SYN_FLOOD is defined) and (SYN_FLOOD|length > 0)
|
||||||
|
|
|
@ -93,7 +93,7 @@
|
||||||
notify: restart haproxy_exporter
|
notify: restart haproxy_exporter
|
||||||
|
|
||||||
- name: install service
|
- name: install service
|
||||||
include: service-{{ prometheus_exporter_service_mgr }}.yml
|
include_tasks: service-{{ prometheus_exporter_service_mgr }}.yml
|
||||||
|
|
||||||
- name: Service Enabled
|
- name: Service Enabled
|
||||||
become: true
|
become: true
|
||||||
|
|
|
@ -107,5 +107,5 @@
|
||||||
|
|
||||||
|
|
||||||
- name: Add syn_flood tasks
|
- name: Add syn_flood tasks
|
||||||
include: ../../haproxy/tasks/syn_flood.yml
|
include_tasks: ../../haproxy/tasks/syn_flood.yml
|
||||||
when: (SYN_FLOOD is defined) and (SYN_FLOOD|length > 0)
|
when: (SYN_FLOOD is defined) and (SYN_FLOOD|length > 0)
|
|
@ -133,7 +133,7 @@
|
||||||
notify: restart nginx_exporter
|
notify: restart nginx_exporter
|
||||||
|
|
||||||
- name: install service
|
- name: install service
|
||||||
include: service-{{ prometheus_exporter_service_mgr }}.yml
|
include_tasks: service-{{ prometheus_exporter_service_mgr }}.yml
|
||||||
|
|
||||||
- name: Service Enabled
|
- name: Service Enabled
|
||||||
become: true
|
become: true
|
||||||
|
|
Loading…
Reference in New Issue