-
Notifications
You must be signed in to change notification settings - Fork 1
/
marathon.yml
39 lines (29 loc) · 889 Bytes
/
marathon.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
---
- hosts: master
remote_user: ubuntu
vars:
cluster_group: master
pre_tasks:
- name: Install docker.io
package: name="docker.io" state="installed"
roles:
- role: ansible-marathon
marathon_env_java_opts: '-Xmx1536m'
marathon_version: "1.4.3"
tasks:
# Start Marathon
- service: name=marathon state=started
# Verify Marathon
- shell: /usr/share/zookeeper/bin/zkCli.sh ls /
register: zkcli_status
- name: Check if marathon is registered in ZooKeeper
debug: var=zkcli_status
- name: Wait for Marathon to be up
wait_for: host="{{ ansible_host }}" port=8080 state=started delay=3 timeout=15
- name: Test for Marathon info endpoint
uri:
url: "http://{{ ansible_host }}:8080/v2/info"
method: GET
register: response
- name: Marathon url check
debug: var=response