Eiffel installation using easy2use
[infra/stack/kubernetes.git] / apps / eiffel / roles / install / tasks / easy2use.yml
1 ---
2 # ============LICENSE_START=======================================================
3 #  Copyright (C) 2022 The Nordix Foundation. All rights reserved.
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #      http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
19
20 - name: Clean easy2use dir
21   file:
22     path: /tmp/eiffel-easy2use
23     state: absent
24
25 - name: Clone easy2use source
26   git:
27     repo: "{{ easy2use_url }}"
28     dest: /tmp/eiffel-easy2use
29     version: "{{ easy2use_version }}"
30
31 - name: Create eiffel namespace
32   k8s:
33     api_version: v1
34     kind: Namespace
35     name: "{{ eiffel_namespace }}"
36     state: present
37
38 - name: Install eiffel using easy2use
39   vars:
40     dir: /tmp/eiffel-easy2use
41   command:
42     cmd: "{{ dir }}/easy2use start Eiffel -y"
43     chdir: "{{ dir }}"
44   changed_when: false