Skip to content

Commit 455673a

Browse files
committed
changed aws-package to dock-init meta
1 parent c1ddadd commit 455673a

2 files changed

Lines changed: 26 additions & 20 deletions

File tree

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
11
---
2-
-name: Check if /usr/local/bin exsits
3-
become: true
4-
file:
5-
Path=/usr/local/bin
6-
state=directory
2+
- name: Install ec2-metadata in /usr/local/bin
3+
become: true
4+
get_url:
5+
url=http://s3.amazonaws.com/ec2metadata/ec2-metadata
6+
dest=/usr/local/bin
7+
mode=0755
78

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
9+
- name: Check of /usr/local/ec2
10+
become: true
11+
file:
12+
path=/usr/local/ec2
13+
state=directory
1114

12-
-name: Check of /usr/local/ec2
13-
become: true
14-
file:
15-
path=/usr/local/ec2
16-
state=directory
15+
- name: Download the zip file for ec2-api-tools
16+
become: true
17+
get_url:
18+
url=http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip
19+
dest=/tmp/ec2
20+
mode=0755
1721

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
22+
- name: Unzip the ec2-api-tool
23+
become: true
24+
unarchive:
25+
src=/tmp/ec2/ec2-api-tools.zip
26+
dest=/usr/local/ec2
27+
copy=no
2528

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
dependencies:
3+
- { role: aws-package, tag: [anurag] }

0 commit comments

Comments
 (0)