update EdgeGallery version 1.5
[eliot.git] / blueprints / iotgateway / playbooks / roles / egallery-tar / tasks / install.yml
1 # Copyright 2021 Huawei Technologies Co., Ltd.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 - name: Create directory to download EG-TAR
16   command: mkdir -p /tmp/eg_download/deploy
17   args:
18     chdir: "{{playbook_dir}}"
19   ignore_errors: yes
20
21 - name: Download 1.5.0 edgegallery x86
22 # yamllint disable rule:line-length
23   command: wget http://edgegallery-v1.5.0.obs.cn-north-4.myhuaweicloud.com/x86/EdgeGallery-v1.5.0-all-x86.tar.gz
24 # yamllint disable rule:line-length
25   args:
26     chdir: /tmp/eg_download/deploy/
27   when: ansible_architecture == 'x86_64'
28
29 - name: Untar Edgegallery offline tarbal file
30   command: tar -xvf EdgeGallery-v1.5.0-all-x86.tar.gz
31   args:
32     chdir: /tmp/eg_download/deploy/
33   when: ansible_architecture == 'x86_64'
34
35 - name: Set inventory file for aio
36   command: cp hosts-aio /tmp/eg_download/deploy/EdgeGallery-v1.5.0-all-x86/install
37   args:
38     chdir: "{{playbook_dir}}"
39   when: ansible_architecture == 'x86_64'
40
41 - name: Set var.yml to eg path
42   # yamllint disable rule:line-length
43   command: cp var.yml /tmp/eg_download/deploy/EdgeGallery-v1.5.0-all-x86/install
44   # yamllint disable rule:line-length
45   args:
46     chdir: "{{playbook_dir}}"
47   when: ansible_architecture == 'x86_64'
48
49 - name: Set default-var.yml to eg path
50   # yamllint disable rule:line-length
51   command: cp default-var.yml /tmp/eg_download/deploy/EdgeGallery-v1.5.0-all-x86/install
52   # yamllint disable rule:line-length
53   args:
54     chdir: "{{playbook_dir}}"
55   when: ansible_architecture == 'x86_64'
56
57 - name: Set password-var.yml to eg path
58   # yamllint disable rule:line-length
59   command: cp password-var.yml /tmp/eg_download/deploy/EdgeGallery-v1.5.0-all-x86/install
60   # yamllint disable rule:line-length
61   args:
62     chdir: "{{playbook_dir}}"
63   when: ansible_architecture == 'x86_64'