blob: c07838c119c47426f939a0be9ed77161a17eb442 [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"
Zack Williamsc989f262017-05-11 13:02:59 -07009 dest: "{{ head_cord_profile_dir }}/key_import/{{ item }}"
Zack Williamsa2763112017-01-03 11:38:38 -070010 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:
Zack Williamsc989f262017-05-11 13:02:59 -070017 src: "{{ head_cord_dir }}/orchestration/xos_services/exampleservice/xos/exampleservice-onboard.yaml"
18 dest: "{{ head_cord_profile_dir }}/exampleservice-onboard.yaml"
Zack Williamsa2763112017-01-03 11:38:38 -070019
20- name: TOSCA to mount exampleservice volume in XOS container
21 template:
22 src: "xos-exampleservice.yaml.j2"
Zack Williamsc989f262017-05-11 13:02:59 -070023 dest: "{{ head_cord_profile_dir }}/xos-exampleservice.yaml"
Zack Williamsa2763112017-01-03 11:38:38 -070024
25- name: TOSCA to create exampleservice test config
26 template:
27 src: "test-exampleservice.yaml.j2"
Zack Williamsc989f262017-05-11 13:02:59 -070028 dest: "{{ head_cord_profile_dir }}/test-exampleservice.yaml"
Zack Williamsa2763112017-01-03 11:38:38 -070029