-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplaybook.yaml
55 lines (49 loc) · 1.02 KB
/
playbook.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# vim: set softtabstop=2 tabstop=2 shiftwidth=2 expandtab autoindent smartindent syntax=yaml:
- hosts: consul_servers
tasks:
- name: ansible-trust-dns
include_role:
name: ansible-trust-dns
tags:
- trust
- hosts: consul_servers
tasks:
# https://www.elastic.co/guide/en/elasticsearch/reference/6.8/vm-max-map-count.html
- name: "Set vm.max_map_count to support Elasticsearch workloads"
command: sysctl -w vm.max_map_count=262144
- hosts: consul_servers
vars_files:
- vars/consul-server.yaml
#@roles:
#@ - consul
tasks:
- name: consul
include_role:
name: consul
tags:
- consul
#- hosts: all
# vars_files:
# - vars/main.yaml
# tasks:
# - name: vault
# include_role:
# name: vault
# tags:
# - vault
- hosts: all
tasks:
- name: docker
include_role:
name: docker
tags:
- docker
- hosts: all
vars_files:
- vars/main.yaml
tasks:
- name: nomad
include_role:
name: nomad
tags:
- nomad