forked from Capgemini/Apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.yml
57 lines (50 loc) · 1.35 KB
/
site.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
46
47
48
49
50
51
52
53
54
55
56
57
---
- hosts: all:!role=bastion
gather_facts: no
tasks:
- name: Wait for ssh port to become available from bastion server.
wait_for:
port: "{{ ansible_ssh_port }}"
host: "{{ ansible_ssh_host }}"
delay: 10
timeout: 60
delegate_to: "{{ bastion_ip }}"
sudo: False
when: bastion_ip is defined
- name: Wait for port 22 to become available from local server.
local_action: "wait_for port={{ ansible_ssh_port }} host={{ ansible_ssh_host }} delay=10 timeout=60"
sudo: False
when: bastion_ip is not defined
- hosts: all:!role=bastion
tasks:
- name: set hostname to local ipv4 address
sudo: Yes
lineinfile:
dest: /etc/hosts
line: "{{ ansible_eth0.ipv4.address }} {{ ansible_hostname }}"
roles:
- consul
- docker
- weave
- dnsmasq
- cadvisor
- registrator
- hosts: mesos_masters
roles:
- zookeeper
- { role: mesos, mesos_install_mode: "master" }
- marathon
- hosts: mesos_slaves
roles:
- { role: mesos, mesos_install_mode: "slave" }
- hosts: load_balancers
roles:
- { role: haproxy, tags: ["haproxy"] }
# Installing DCOS frameworks from one master.
- hosts: mesos_masters
roles:
- frameworks
- include: tests/test.yml
vars_files:
- ../roles/marathon/defaults/main.yml
- include: contrib-plugins/playbook.yml