X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ocd%2Finfra%2Fplaybooks%2Froles%2Fegallery-munomode-edge%2Ftasks%2Finstall.yml;h=c98a86149cdc067ec23ef405e3887cda8c379ed4;hb=c21b686a016b6f99540dbd266542495a680a429d;hp=1edac16e76a364caad1edaad6582d697b9f0519a;hpb=3c1bb1c727ca416486ab96384557ee3d12acf1e9;p=ealt-edge.git diff --git a/ocd/infra/playbooks/roles/egallery-munomode-edge/tasks/install.yml b/ocd/infra/playbooks/roles/egallery-munomode-edge/tasks/install.yml index 1edac16..c98a861 100644 --- a/ocd/infra/playbooks/roles/egallery-munomode-edge/tasks/install.yml +++ b/ocd/infra/playbooks/roles/egallery-munomode-edge/tasks/install.yml @@ -15,33 +15,38 @@ --- ### MUNO edge installation ### +- name: Check edgegallery tar ball present + stat: + path: /tmp/eg_download/deploy/EdgeGallery-v1.1.1-edge-x86.tar.gz + register: edge_tar_var + - name: Download 1.1 edgegallery x86 edge # yamllint disable rule:line-length - command: wget https://edgegallery.obs.cn-east-3.myhuaweicloud.com/releases/v1.1.1/x86/EdgeGallery-v1.1.1-edge-x86.tar.gz + command: wget https://akraino.obs.ap-southeast-1.myhuaweicloud.com/v1.1.1/x86/EdgeGallery-v1.1.1-edge-x86.tar.gz # yamllint disable rule:line-length args: chdir: /tmp/eg_download/deploy/ - when: ansible_architecture == 'x86_64' + when: not edge_tar_var.stat.exists - name: Untar Edgegallery offline edge tar file command: tar -xvf EdgeGallery-v1.1.1-edge-x86 args: chdir: /tmp/eg_download/deploy/ - when: ansible_architecture == 'x86_64' + when: not edge_tar_var.stat.exists - name: Set inventory file for muno edge # yamllint disable rule:line-length command: scp root@{{ OCD_IP }}:"{{playbook_dir}}"/muno-config/edge/hosts-muno-edge . # yamllint disable rule:line-length args: - chdir: /tmp/eg_download/deploy/EdgeGallery-v1.1.1-edge-x86/install + chdir: "{{playbook_dir}}" - name: Set var.yml file for muno edge # yamllint disable rule:line-length command: scp root@{{ OCD_IP }}:"{{playbook_dir}}"/muno-config/edge/var.yml . # yamllint disable rule:line-length args: - chdir: /tmp/eg_download/deploy/EdgeGallery-v1.1.1-edge-x86/install + chdir: "{{playbook_dir}}" - name: Install edgegallery edge shell: