aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/odl_cluster/tasks/01_02_unarchive_odl_and_jdk.yml
blob: 9592a0ae7c20649d416df9594bede174f26039dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
##############################################################################
# Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
---

- name: clear jdk8 package
  command: su -s /bin/sh -c "rm -rf /opt/install_jdk8"

- name: unarchive onos driver package
  command: su -s /bin/sh -c "tar xvf /opt/install_jdk8.tar -C /opt/"

- name: install install_jdk8 package
  command: su -s /bin/sh -c "/opt/install_jdk8/install_jdk8.sh"

- name: clear odl package
  command: su -s /bin/sh -c "rm -rf {{ odl_home }}/*"

- name: extract odl package
  command: |
    su -s /bin/sh -c "tar xzf /opt/{{ odl_pkg_name }} -C {{ odl_home }} \
        --strip-components 1" odl