Implementing jump VM create via ansible
[kuberef.git] / playbooks / roles / bootstrap / tasks / main.yaml
1 ---
2 ##############################################################################
3 # Copyright (c) Ericsson AB and others
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 # collected PDF and IDF are copied into group_vars
11 # folder in order to ensure we have single PDF and IDF
12 - name: Copy collected PDF and IDF to group_vars
13   copy:
14     src: "{{ item.src }}"
15     dest: "{{ item.dest }}"
16     force: true
17     mode: 0644
18   with_items:
19     - {src: "{{ kuberef_root }}/hw_config/{{ lookup('env', 'VENDOR') }}/pdf.yaml", dest: "{{ inventory_path }}/group_vars/all/pdf.yaml"}
20     - {src: "{{ kuberef_root }}/hw_config/{{ lookup('env', 'VENDOR') }}/idf.yaml", dest: "{{ inventory_path }}/group_vars/all/idf.yaml"}