blob: c1d3cfaf76958a1c103e5307aa753ae24963e516 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Instance configuration for Baserock HAProxy instance.
#
# This playbook should be run after starting an instance of the Baserock
# frontend image.
---
- hosts: frontend-haproxy
gather_facts: false
sudo: yes
tasks:
- name: install SSL certificate
copy:
content: "{{ lookup('file', '../private/frontend-with-key.pem') }}"
dest: /etc/pki/tls/private/baserock.pem
owner: haproxy
mode: 400
notify:
- restart haproxy
- name: HAProxy configuration
copy:
src: haproxy.cfg
dest: /etc/haproxy/haproxy.cfg
notify:
- restart haproxy
handlers:
- name: restart haproxy
service:
name: haproxy
enabled: true
state: restarted
|