X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=blueprints%2Fiotgateway%2Fplaybooks%2Froles%2Fegallery-munomode-edge%2Ftasks%2Finstall.yml;fp=blueprints%2Fiotgateway%2Fplaybooks%2Froles%2Fegallery-munomode-edge%2Ftasks%2Finstall.yml;h=620dbc156e84017b0481a785f69e9cc4ad5b0901;hb=17770356db8dc3aae9be44cac8fbaae61080f8d2;hp=0dad5b49494f20a4c57f268c54a57f01d4e314dc;hpb=883943648d86ce7665de0b4c90c76e3b62da2e30;p=eliot.git diff --git a/blueprints/iotgateway/playbooks/roles/egallery-munomode-edge/tasks/install.yml b/blueprints/iotgateway/playbooks/roles/egallery-munomode-edge/tasks/install.yml index 0dad5b4..620dbc1 100644 --- a/blueprints/iotgateway/playbooks/roles/egallery-munomode-edge/tasks/install.yml +++ b/blueprints/iotgateway/playbooks/roles/egallery-munomode-edge/tasks/install.yml @@ -17,19 +17,24 @@ - name: Check edgegallery tar ball present stat: - path: /tmp/eg_download/deploy/EdgeGallery-v1.3.2-edge-x86.tar.gz + path: /tmp/eg_download/deploy/EdgeGallery-v1.5.0-edge-x86.tar.gz register: edge_tar_var -- name: Download 1.1 edgegallery x86 edge +- name: Creates directory + file: + path: /tmp/eg_download/deploy/ + state: directory + +- name: Download 1.5.0 edgegallery x86 edge # yamllint disable rule:line-length - command: wget https://edgegallery.obs.cn-east-3.myhuaweicloud.com/releases/v1.3.2/x86/EdgeGallery-v1.3.2-edge-x86.tar.gz + command: wget http://edgegallery-v1.5.0.obs.cn-north-4.myhuaweicloud.com/x86/EdgeGallery-v1.5.0-edge-x86.tar.gz # yamllint disable rule:line-length args: chdir: /tmp/eg_download/deploy/ when: not edge_tar_var.stat.exists - name: Untar Edgegallery offline edge tar file - command: tar -xvf EdgeGallery-v1.3.2-edge-x86 + command: tar -xvf EdgeGallery-v1.5.0-edge-x86.tar.gz args: chdir: /tmp/eg_download/deploy/ when: not edge_tar_var.stat.exists @@ -39,19 +44,27 @@ command: scp root@{{ OCD_IP }}:"{{playbook_dir}}"/muno-config/edge/hosts-muno-edge . # yamllint disable rule:line-length args: - chdir: "{{playbook_dir}}" + chdir: /tmp/eg_download/deploy/EdgeGallery-v1.5.0-edge-x86/install - 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: "{{playbook_dir}}" + chdir: /tmp/eg_download/deploy/EdgeGallery-v1.5.0-edge-x86/install + +- name: Set password-var.yml file for muno edge +# yamllint disable rule:line-length + command: scp root@{{ OCD_IP }}:"{{playbook_dir}}"/password-var.yml . +# yamllint disable rule:line-length + args: + chdir: /tmp/eg_download/deploy/EdgeGallery-v1.5.0-edge-x86/install + - name: Install edgegallery edge shell: # yamllint disable rule:line-length cmd: ansible-playbook --inventory hosts-muno-edge -e "ansible_user=root" eg_edge_aio_install.yml >> muno_edge_log # yamllint disable rule:line-length - chdir: /tmp/eg_download/deploy/EdgeGallery-v1.3.2-edge-x86/install + chdir: /tmp/eg_download/deploy/EdgeGallery-v1.5.0-edge-x86/install when: ansible_architecture == 'x86_64'