copy in VTN and OLT as well
Change-Id: Ib9a267a85b6f6cb52372a7641cbe40880409384a
diff --git a/roles/xos-vm-install/tasks/main.yml b/roles/xos-vm-install/tasks/main.yml
index 2b165e7..1f704c6 100644
--- a/roles/xos-vm-install/tasks/main.yml
+++ b/roles/xos-vm-install/tasks/main.yml
@@ -23,6 +23,20 @@
when:
orchestration.stat.exists == True
+- name: Check to see if onos_apps directory exists
+ local_action: stat path="{{ playbook_dir }}/../../onos-apps/apps"
+ register: onos_apps
+
+- name: Copy in onos-apps that have XOS code
+ synchronize:
+ src: "{{ playbook_dir }}/../../onos-apps/apps/{{ item }}"
+ dest: "{{ ansible_user_dir }}/xos_install/orchestration/xos_services/"
+ with_items:
+ - vtn
+ - olt
+ when:
+ (orchestration.stat.exists == True) and (onos_apps.stat.exists == True)
+
- name: Copy over XOS ansible playbook
copy:
src=xos-setup-{{ xos_configuration }}-playbook.yml