Fatih Degirmenci | 464b192 | 2019-06-23 10:20:54 +0000 | [diff] [blame] | 1 | --- |
| 2 | # ============LICENSE_START======================================================= |
| 3 | # Copyright (C) 2019 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 | |
Fatih Degirmenci | ed94571 | 2020-01-12 15:07:51 +0000 | [diff] [blame] | 20 | - name: Copy Heat templates and IDF file |
Fatih Degirmenci | 464b192 | 2019-06-23 10:20:54 +0000 | [diff] [blame] | 21 | copy: |
| 22 | src: "{{ item }}" |
Fatih Degirmenci | ed94571 | 2020-01-12 15:07:51 +0000 | [diff] [blame] | 23 | dest: "{{ config_path }}" |
Fatih Degirmenci | 464b192 | 2019-06-23 10:20:54 +0000 | [diff] [blame] | 24 | with_items: |
| 25 | - heat-template.yaml |
| 26 | - heat-server.yaml |
Fatih Degirmenci | 2da7c71 | 2019-06-28 21:38:03 +0000 | [diff] [blame] | 27 | - heat-jumphost.yaml |
Fatih Degirmenci | ed94571 | 2020-01-12 15:07:51 +0000 | [diff] [blame] | 28 | - heat-idf.yaml |
Fatih Degirmenci | 464b192 | 2019-06-23 10:20:54 +0000 | [diff] [blame] | 29 | |
| 30 | - name: Get Heat environment file |
| 31 | get_url: |
| 32 | url: "{{ heat_env_file }}" |
Fatih Degirmenci | ed94571 | 2020-01-12 15:07:51 +0000 | [diff] [blame] | 33 | dest: "{{ config_path }}/heat-environment.yaml" |
Fatih Degirmenci | 464b192 | 2019-06-23 10:20:54 +0000 | [diff] [blame] | 34 | mode: 0644 |
| 35 | |
Fatih Degirmenci | ed94571 | 2020-01-12 15:07:51 +0000 | [diff] [blame] | 36 | - name: Remove existing Heat IDF symlink |
| 37 | file: |
| 38 | path: "{{ inventory_path }}/group_vars/idf.yaml" |
| 39 | state: absent |
| 40 | ignore_errors: true |
| 41 | |
| 42 | # NOTE: Heat IDF file is linked from config_path to inventory |
| 43 | # folder in order to ensure we have single IDF |
| 44 | - name: Link collected Heat IDF file to inventory folder |
| 45 | file: |
| 46 | src: "{{ config_path }}/heat-idf.yaml" |
| 47 | dest: "{{ inventory_path }}/group_vars/all/idf.yaml" |
| 48 | state: link |
| 49 | force: true |
| 50 | |
Fatih Degirmenci | 464b192 | 2019-06-23 10:20:54 +0000 | [diff] [blame] | 51 | # vim: set ts=2 sw=2 expandtab: |