-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.yml
40 lines (37 loc) · 989 Bytes
/
configure.yml
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
32
33
34
35
36
37
38
39
40
---
- hosts: "all"
become: true
gather_facts: true
- hosts: "tag_Tier_Web"
become: true
gather_facts: false
tasks:
- name: "Configure web HAProxy instance with templated configuration"
template:
src: "templates/web-haproxy.cfg.j2"
dest: "/etc/haproxy/haproxy.cfg"
owner: "root"
group: "root"
mode: 0644
- hosts: "tag_Tier_App"
become: true
gather_facts: false
tasks:
- name: "Render templated Django settings file"
template:
src: "templates/settings.py.j2"
dest: "/home/ubuntu/fitcycle/fitcycle/settings.py"
owner: "ubuntu"
group: "ubuntu"
mode: 0644
- hosts: "tag_Name_DB_Load_Balancer"
become: true
gather_facts: false
tasks:
- name: "Configure DB HAProxy instance with templated configuration"
template:
src: "templates/db-haproxy.cfg.j2"
dest: "/etc/haproxy/haproxy.cfg"
owner: "root"
group: "root"
mode: 0644