blob: e4f165ae31203a917c412bc5f85839cf63050f45 [file] [log] [blame]
Andy Bavierc2335122016-06-25 09:59:22 -04001---
2# onos-load-apps/tasks/main.yml
3#
4# Install CORD ONOS apps from local containers
5
6- name: Disable loading from Maven repo
7 command: ansible xos-1 -u ubuntu -m lineinfile \
Scott Baker333a3152016-06-29 08:58:42 -07008 -a "dest=~/service-profile/{{ xos_configuration }}/make-vtn-external-yaml.sh state=absent regexp='install_dependencies'"
Andy Bavierc2335122016-06-25 09:59:22 -04009
10- name: Load the apps using Docker
11 command: ansible xos-1 -u ubuntu -m shell \
Andy Bavier4aa3e232016-07-12 19:56:32 +020012 -a "cd ~/xos/containers/cord-apps; make {{ item }}; sudo docker run xosproject/cord-app-{{ item }}"
Andy Bavierc2977cf2016-06-25 11:16:23 -040013 with_items: "{{ cord_apps }}"
Zack Williams4b7682b2016-06-29 18:52:08 -070014
15- name: Enable debugging for cord apps
16 shell: "sshpass -p 'karaf' ssh -p 8101 karaf@onos-cord-1 log:set DEBUG org.opencord.{{ item }}"
17 with_items: "{{ cord_apps }}"
18