blob: dc21c175a29d66a6640d9c9949823ddb25cf4bde [file] [log] [blame]
Zack Williamsa2763112017-01-03 11:38:38 -07001---
2# exampleservice-config/tasks/main.yml
3
4- name: Create fake/empty ssh keys if profile hasn't created them
5 copy:
6 remote_src: True # file is local to the remote machine
7 force: False # only copy if destination file doesn't exist
8 src: "/dev/null"
9 dest: "{{ cord_profile_dir }}/key_import/{{ item }}"
10 mode: 0600
11 with_items:
12 - exampleservice_rsa
13 - exampleservice_rsa.pub
14
15- name: Copy exampleservice onboarding TOSCA files to cord_profile
16 copy:
17 src: "{{ cord_dir }}/orchestration/xos_services/exampleservice/xos/exampleservice-onboard.yaml"
18 dest: "{{ cord_profile_dir }}/exampleservice-onboard.yaml"
19
20- name: TOSCA to mount exampleservice volume in XOS container
21 template:
22 src: "xos-exampleservice.yaml.j2"
23 dest: "{{ cord_profile_dir }}/xos-exampleservice.yaml"
24
25- name: TOSCA to create exampleservice test config
26 template:
27 src: "test-exampleservice.yaml.j2"
28 dest: "{{ cord_profile_dir }}/test-exampleservice.yaml"
29