Skip to content

Commit

Permalink
Merge pull request #97 from Capgemini/fix-61-hostname-resolve
Browse files Browse the repository at this point in the history
Fixes #61 - marathon hostname link was not resolving correctly from the ...
  • Loading branch information
tayzlor committed Apr 23, 2015
2 parents f31aa83 + 04b2bd7 commit 4d7d0dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/marathon/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
# defaults file for marathon
marathon_port: 8080
consul_dir: /etc/consul.d
marathon_local_address: "{{ansible_eth0.ipv4.address}}"
7 changes: 7 additions & 0 deletions roles/marathon/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
---
# tasks file for marathon
- name: Set Marathon hostname
copy:
content: "{{marathon_local_address}}"
dest: /etc/marathon/conf/hostname
mode: 0644
sudo: yes

- name: remove marathon override
command: /bin/rm -f /etc/init/marathon.override

Expand Down

0 comments on commit 4d7d0dc

Please sign in to comment.