-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmvn.yml
23 lines (23 loc) · 778 Bytes
/
mvn.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
- name: Install the Maven on EC2
hosts: localhost
become: true
tasks:
- name: Download Java
get_url:
#url: http://download.oracle.com/otn-pub/java/jdk/8u60-b27/jdk-8u60-linux-x64.rpm
url: http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm
dest: /opt/jdk-8u60-linux-x64.rpm
#headers: 'Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie'
headers: "Cookie: oraclelicense=accept-securebackup-cookie"
- name: Install Java
yum:
name: /opt/jdk-8u60-linux-x64.rpm
state: present
- name: Git Installation
yum:
name: git
state: present
- name: Maven Installation
yum:
name: maven
state: present