X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ocd%2Finfra%2Fplaybooks%2Froles%2Fegallery-tar%2Ftasks%2Finstall.yml;h=8a521e8d4dce18514f79a45ef33bba5180258942;hb=refs%2Fchanges%2F71%2F4671%2F1;hp=03f23475a914429a28307f8f48989add8f5fe746;hpb=816809e371759e4e5c326d4a2ab617de76e58a01;p=ealt-edge.git diff --git a/ocd/infra/playbooks/roles/egallery-tar/tasks/install.yml b/ocd/infra/playbooks/roles/egallery-tar/tasks/install.yml index 03f2347..8a521e8 100644 --- a/ocd/infra/playbooks/roles/egallery-tar/tasks/install.yml +++ b/ocd/infra/playbooks/roles/egallery-tar/tasks/install.yml @@ -12,27 +12,53 @@ # See the License for the specific language governing permissions and # limitations under the License. ---- -- name: Download 1.1 edgegallery x86 + +- name: Create directory to download EG-TAR + command: mkdir -p /tmp/eg_download/deploy + args: + chdir: "{{playbook_dir}}" + ignore_errors: yes + +- name: Download 1.5.0 edgegallery x86 # yamllint disable rule:line-length - command: wget https://edgegallery.obs.cn-east-3.myhuaweicloud.com/releases/v1.1/x86/EdgeGallery-v1.1-all-x86.tar.gz + command: wget http://edgegallery-v1.5.0.obs.cn-north-4.myhuaweicloud.com/x86/EdgeGallery-v1.5.0-all-x86.tar.gz # yamllint disable rule:line-length args: chdir: /tmp/eg_download/deploy/ when: ansible_architecture == 'x86_64' - name: Untar Edgegallery offline tarbal file - command: tar -xvf EdgeGallery-v1.1-all-x86.tar.gz + command: tar -xvf EdgeGallery-v1.5.0-all-x86.tar.gz args: chdir: /tmp/eg_download/deploy/ when: ansible_architecture == 'x86_64' - name: Set inventory file for aio - command: cp hosts-aio /tmp/eg_download/deploy/ansible-all-x86-latest/install + command: cp hosts-aio /tmp/eg_download/deploy/EdgeGallery-v1.5.0-all-x86/install + args: + chdir: "{{playbook_dir}}" + when: ansible_architecture == 'x86_64' + +- name: Set var.yml to eg path + # yamllint disable rule:line-length + command: cp var.yml /tmp/eg_download/deploy/EdgeGallery-v1.5.0-all-x86/install + # yamllint disable rule:line-length args: chdir: "{{playbook_dir}}" + when: ansible_architecture == 'x86_64' -- name: Set inventory file for muno - command: cp hosts-muno /tmp/eg_download/deploy/ansible-all-x86-latest/install +- name: Set default-var.yml to eg path + # yamllint disable rule:line-length + command: cp default-var.yml /tmp/eg_download/deploy/EdgeGallery-v1.5.0-all-x86/install + # yamllint disable rule:line-length args: chdir: "{{playbook_dir}}" + when: ansible_architecture == 'x86_64' + +- name: Set password-var.yml to eg path + # yamllint disable rule:line-length + command: cp password-var.yml /tmp/eg_download/deploy/EdgeGallery-v1.5.0-all-x86/install + # yamllint disable rule:line-length + args: + chdir: "{{playbook_dir}}" + when: ansible_architecture == 'x86_64'