-
Notifications
You must be signed in to change notification settings - Fork 0
/
etcd.yml
36 lines (27 loc) · 962 Bytes
/
etcd.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
---
- hosts: "{{ hosts_prefix }}_pinglist_etcd_0"
gather_facts: False
roles:
- defunctzombie.coreos-bootstrap
tasks:
- include_vars: "environments/{{ deploy_env }}.yml"
- name: Render API configuration JSON file
template:
src: "templates/pinglist.json.j2"
dest: "/tmp/pinglist.json"
- name: Load API configuration into etcd
raw: "etcdctl set /config/pinglist.json < /tmp/pinglist.json"
- name: Remove the API configuration JSON file
file:
path: "/tmp/pinglist.json"
state: "absent"
- name: Render app configuration JSON file
template:
src: "templates/pinglist_app.json.j2"
dest: "/tmp/pinglist_app.json"
- name: Load app configuration into etcd
raw: "etcdctl set /config/pinglist_app.json < /tmp/pinglist_app.json"
- name: Remove the app configuration JSON file
file:
path: "/tmp/pinglist_app.json"
state: "absent"