diff --git a/ansible/inventory.yml b/ansible/inventory.yml index f24e40ab2..7d8508cd9 100644 --- a/ansible/inventory.yml +++ b/ansible/inventory.yml @@ -136,6 +136,7 @@ hosts: ubuntu1404-ppc64_be-2: {ip: 140.211.168.75} ubuntu1404-ppc64_le-1: {ip: 140.211.168.106} ubuntu1404-ppc64_le-2: {ip: 140.211.168.94} + ubuntu1404-ppc64_le-3: {ip: 140.211.168.221, user: root} - rackspace: centos7-x64-1: {ip: 119.9.27.82} diff --git a/ansible/roles/baselayout/vars/main.yml b/ansible/roles/baselayout/vars/main.yml index 8f4c26235..771f00f13 100644 --- a/ansible/roles/baselayout/vars/main.yml +++ b/ansible/roles/baselayout/vars/main.yml @@ -120,6 +120,8 @@ packages: { ubuntu1404: [ 'ntp', + 'g++-4.8', + 'gcc-4.8', 'g++-4.9', 'gcc-4.9', ] diff --git a/ansible/roles/java-base/tasks/main.yml b/ansible/roles/java-base/tasks/main.yml index 70fbf27b1..5dd8c3d34 100644 --- a/ansible/roles/java-base/tasks/main.yml +++ b/ansible/roles/java-base/tasks/main.yml @@ -5,11 +5,11 @@ # - name: install add-apt-repostory - when: os in ("ubuntu1204", "ubuntu1404") + when: os in ("ubuntu1204", "ubuntu1404") and arch != "ppc64" package: name=software-properties-common state=present - name: add webupd8 oracle java repository - when: os in ("ubuntu1204", "ubuntu1404") + when: os in ("ubuntu1204", "ubuntu1404") and arch != "ppc64" apt_repository: repo='ppa:webupd8team/java' - name: add webupd8team oracle java repository @@ -24,13 +24,35 @@ shell: apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 - name: accept webupd8 oracle java 8 license - when: os in ("ubuntu1204", "ubuntu1404") or os == "debian8" + when: os in ("ubuntu1204", "ubuntu1404") and arch != "ppc64" or os == "debian8" debconf: name='oracle-java8-installer' question='shared/accepted-oracle-license-v1-1' value='true' vtype='select' - name: update packages include_role: name: package-upgrade +- name: download java + when: os in "ubuntu1404" and arch == "ppc64" + get_url: + url: https://github.com/AdoptOpenJDK/openjdk8-releases/releases/download/jdk8u144-b01/OpenJDK8_ppc64le_Linux_jdk8u144-b01.tar.gz + dest: /tmp/ + +- name: unarchive java + when: os in "ubuntu1404" and arch == "ppc64" + unarchive: + src: /tmp/OpenJDK8_ppc64le_Linux_jdk8u144-b01.tar.gz + remote_src: yes + dest: /home/iojs + tags: java + +- name: create symlink + when: os in "ubuntu1404" and arch == "ppc64" + file: + src: /home/iojs/jdk8u144-b01 + dest: /home/iojs/jkd + state: link + tags: java + # if this fails you want to check in vars/main.yml and add package name # as appropriate -- try to use generic os family if available. - name: install java @@ -38,7 +60,7 @@ package: name="{{ java_package_name }}" state=present - name: install webupd8 oracle java 8 extras - when: os in ("ubuntu1204", "ubuntu1404") + when: os in ("ubuntu1204", "ubuntu1404") and arch != "ppc64" package: name="{{item}}" state=present with_items: - ca-certificates