Skip to content

Commit c1ddadd

Browse files
committed
added aws ec2-metadata and ec2-api-tool
1 parent 48ad0a5 commit c1ddadd

4 files changed

Lines changed: 29 additions & 2 deletions

File tree

ansible/dock-init.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
- group_vars/alpha-dock-init.yml
77
roles:
88
- { role: notify, tags: [notify] }
9-
- { role: docker_client, tags: [docker] }
109
- { role: docker, tags: [docker] }
1110
- { role: git_repo, tags: [deploy] }
1211
- { role: dock-init, tags: [deploy] }
1312
- { role: consul_value, tags: [deploy, consul_value] }
13+
- { role: aws-package, tag: [anurag]}
14+
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
-name: Check if /usr/local/bin exsits
3+
become: true
4+
file:
5+
Path=/usr/local/bin
6+
state=directory
7+
8+
-name: Install ec2-metadata in /usr/local/bin
9+
become:
10+
get_url: url=http://s3.amazonaws.com/ec2metadata/ec2-metadata dest=/usr/local/bin mode=0755
11+
12+
-name: Check of /usr/local/ec2
13+
become: true
14+
file:
15+
path=/usr/local/ec2
16+
state=directory
17+
18+
-name: Download the zip file for ec2-api-tools
19+
become: true
20+
get_url: url=http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip dest=/tmp/ec2 mode=0755
21+
22+
-name: Unzip the ec2-api-tool
23+
become: true
24+
unarchive: src=/tmp/ec2/ec2-api-tools.zip dest=/usr/local/ec2 copy=no
25+

ansible/roles/docker/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- name: copy docker certs
99
sudo: yes
1010
copy:
11-
src=certs
11+
src=certs/
1212
dest=/etc/ssl/docker
1313
mode=0440
1414
owner=root

ansible/roles/image-builder/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@
2525
- name: push image-builder
2626
run_once: true
2727
command: sudo docker push "registry.runnable.com/{{ image_builder_docker_namespace }}:{{ git_branch }}"
28+
when: dock is not defined

0 commit comments

Comments
 (0)