Unverified Commit f24b9d54 by Cory Lee Committed by GitHub

Merge pull request #3237 from edx/arbab/oraclejdk-rewrite

[Ansible 2.x ] use the get_url and unarchive module instead of curl and tar
parents f6efe961 28ff7ffa
...@@ -17,11 +17,10 @@ ...@@ -17,11 +17,10 @@
with_items: "{{ oraclejdk_debian_pkgs }}" with_items: "{{ oraclejdk_debian_pkgs }}"
- name: Download Oracle Java - name: Download Oracle Java
shell: "curl -b gpw_e24=http%3A%2F%2Fwww.oracle.com -b oraclelicense=accept-securebackup-cookie -O -L {{ oraclejdk_url }}" get_url:
args: url: "{{ oraclejdk_url }}"
executable: /bin/bash headers: 'Cookie:oraclelicense=accept-securebackup-cookie'
chdir: /var/tmp dest: "/var/tmp/{{ oraclejdk_file }}"
creates: "/var/tmp/{{ oraclejdk_file }}"
- name: Create jvm dir - name: Create jvm dir
file: file:
...@@ -31,10 +30,10 @@ ...@@ -31,10 +30,10 @@
group: root group: root
- name: Untar Oracle Java - name: Untar Oracle Java
shell: "tar -C /usr/lib/jvm -zxvf /var/tmp/{{ oraclejdk_file }}" unarchive:
args: src: "/var/tmp/{{ oraclejdk_file }}"
executable: /bin/bash dest: "/usr/lib/jvm"
creates: "/usr/lib/jvm/{{ oraclejdk_base }}" copy: no
- name: Create symlink expected by elasticsearch - name: Create symlink expected by elasticsearch
file: file:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment