blob: 255d64b86c5a6cf8ee36a4541e9534dbc448c38b [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
Zack Williamsa2763112017-01-03 11:38:38 -070017---
18# exampleservice-config/tasks/main.yml
19
20- name: Create fake/empty ssh keys if profile hasn't created them
21 copy:
22 remote_src: True # file is local to the remote machine
23 force: False # only copy if destination file doesn't exist
24 src: "/dev/null"
Zack Williamsc989f262017-05-11 13:02:59 -070025 dest: "{{ head_cord_profile_dir }}/key_import/{{ item }}"
Zack Williamsa2763112017-01-03 11:38:38 -070026 mode: 0600
27 with_items:
28 - exampleservice_rsa
29 - exampleservice_rsa.pub
30
Zack Williamsa2763112017-01-03 11:38:38 -070031- name: TOSCA to create exampleservice test config
32 template:
33 src: "test-exampleservice.yaml.j2"
Zack Williamsc989f262017-05-11 13:02:59 -070034 dest: "{{ head_cord_profile_dir }}/test-exampleservice.yaml"
Zack Williamsa2763112017-01-03 11:38:38 -070035