forked from dmichel1/ansible-graphite
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplaybook.yml
45 lines (39 loc) · 808 Bytes
/
playbook.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
41
42
43
44
45
---
- name: sshd
hosts: all
gather_facts: False
tasks:
- name: Wait for sshd to be running
local_action: "wait_for host={{ inventory_hostname }} delay=0 port=22
timeout=90 state=started"
- name: Discover facts and group
hosts: all
user: '{{ ssh_user }}'
sudo: yes
vars:
ssh_user: root
tasks:
- name: Group RedHat hosts
group_by: key={{ ansible_os_family }}
changed_when: False
- name: Configure RedHat hosts
hosts: RedHat
user: '{{ ssh_user }}'
sudo: yes
gather_facts: no
vars:
ssh_user: root
roles:
- roles/centos
- name: graphite
hosts: graphite
user: '{{ ssh_user }}'
sudo: true
gather_facts: no
vars:
ssh_user: root
roles:
- roles/apache
- roles/graphite
- roles/grafana
- roles/elasticsearch