File tree Expand file tree Collapse file tree
ansible/roles/package-aws/tasks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments