forked from griggheo/ansible-consul-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testrhel6.yml
35 lines (30 loc) · 815 Bytes
/
testrhel6.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
---
- hosts: all
become: yes
pre_tasks:
- name: epel-repo
yum:
name: epel-release
state: present
- name: libselinux-python
yum:
name: libselinux-python
state: present
roles:
- savagegus.consul
- ansible-consul-template
vars:
# Consul
consul_version: 0.6.0
consul_is_server: true
consul_bootstrap_expect: 1
consul_use_initd: true
consul_install_nginx: false
# Consul Template
consul_template_use_upstart: false
consul_template_use_systemd: false
consul_template_use_initd: true
consul_template_template_files:
- {src: ./test/fixture/template/consul.ctmpl}
consul_template_templates:
- {name: "consul.ctmpl", dest: "/tmp/service-consul", cmd: "touch /tmp/service-consul-updated"}