Skip to content

Commit fd36169

Browse files
author
anandkumarpatel
committed
Merge pull request #229 from CodeNow/dock-init-playbook
Dock-init playbook
2 parents e88780b + 56ffb18 commit fd36169

4 files changed

Lines changed: 16 additions & 0 deletions

File tree

ansible/dock-init.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
- hosts: consul
3+
vars_files:
4+
- group_vars/alpha-dock-init.yml
5+
roles:
6+
- { role: notify, tags: [notify] }
7+
- { role: consul_value, tags: [deploy, consul_value] }
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: dock-init
2+
app_name: "{{ name }}"
3+
4+
# consul values
5+
consul_values:
6+
- key: "{{ name }}/version"
7+
value: "{{ git_branch }}"

ansible/roles/consul_value/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
- name: make sure httplib2 is installed
3+
run_once: true
34
sudo: yes
45
apt:
56
package=python-httplib2

ansible/roles/notify/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
delegate_to: 127.0.0.1
88

99
- name: send start message
10+
run_once: yes
1011
changed_when: True
1112
tags:
1213
- always

0 commit comments

Comments
 (0)