Skip to content

Commit afbb314

Browse files
committed
add unzip for api tool
1 parent 3ac4955 commit afbb314

1 file changed

Lines changed: 28 additions & 18 deletions

File tree

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,31 @@
11
---
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
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
88

9-
# - name: Download the zip file for ec2-api-tools
10-
# become: true
11-
# get_url:
12-
# url=http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip
13-
# dest=/tmp/ec2
14-
# mode=0755
9+
- name: Download the zip file for ec2-api-tools
10+
become: true
11+
get_url:
12+
url=http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip
13+
dest=/usr/local
14+
mode=0755
1515

16-
# - name: Unzip the ec2-api-tool
17-
# become: true
18-
# unarchive:
19-
# src=/tmp/ec2/ec2-api-tools.zip
20-
# dest=/usr/local/ec2
21-
# copy=no
16+
- name: Create Directory for ec2 api tool
17+
become: true
18+
file:
19+
path=/usr/local/ec2
20+
owner=root
21+
group=root
22+
mode=0555
23+
state=directory
24+
25+
- name: Unzip the ec2-api-tool
26+
become: true
27+
unarchive:
28+
src=/usr/local/ec2-api-tools.zip
29+
dest=/usr/local/ec2
30+
copy=no
31+
mode=0755

0 commit comments

Comments
 (0)