blob: d5e79ff4720478099fe8fbd447fb814455a67d39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# 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
- name: HAProxy configuration
copy:
src: haproxy.cfg
dest: /etc/haproxy/haproxy.cfg
|