blob: 255d64b86c5a6cf8ee36a4541e9534dbc448c38b [file] [log] [blame]
# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
# exampleservice-config/tasks/main.yml
- name: Create fake/empty ssh keys if profile hasn't created them
copy:
remote_src: True # file is local to the remote machine
force: False # only copy if destination file doesn't exist
src: "/dev/null"
dest: "{{ head_cord_profile_dir }}/key_import/{{ item }}"
mode: 0600
with_items:
- exampleservice_rsa
- exampleservice_rsa.pub
- name: TOSCA to create exampleservice test config
template:
src: "test-exampleservice.yaml.j2"
dest: "{{ head_cord_profile_dir }}/test-exampleservice.yaml"