mirror of https://github.com/Aidaho12/haproxy-wi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
630 B
31 lines
630 B
---
|
|
- name: Install HAProxy as a service
|
|
hosts: "{{ variable_host }}"
|
|
become: yes
|
|
become_method: sudo
|
|
gather_facts: yes
|
|
roles:
|
|
- role: haproxy
|
|
environment:
|
|
http_proxy: "{{PROXY}}"
|
|
https_proxy: "{{PROXY}}"
|
|
|
|
tags:
|
|
- system
|
|
|
|
- name: Install HAProxy as a Docker
|
|
hosts: "{{ variable_host }}"
|
|
become: yes
|
|
become_method: sudo
|
|
gather_facts: yes
|
|
roles:
|
|
- role: docker
|
|
environment:
|
|
http_proxy: "{{PROXY}}"
|
|
https_proxy: "{{PROXY}}"
|
|
- role: haproxy-docker
|
|
environment:
|
|
http_proxy: "{{PROXY}}"
|
|
https_proxy: "{{PROXY}}"
|
|
tags:
|
|
- docker |