Andy Bavier | c233512 | 2016-06-25 09:59:22 -0400 | [diff] [blame] | 1 | --- |
| 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 Baker | 333a315 | 2016-06-29 08:58:42 -0700 | [diff] [blame] | 8 | -a "dest=~/service-profile/{{ xos_configuration }}/make-vtn-external-yaml.sh state=absent regexp='install_dependencies'" |
Andy Bavier | c233512 | 2016-06-25 09:59:22 -0400 | [diff] [blame] | 9 | |
| 10 | - name: Load the apps using Docker |
| 11 | command: ansible xos-1 -u ubuntu -m shell \ |
Andy Bavier | 4aa3e23 | 2016-07-12 19:56:32 +0200 | [diff] [blame] | 12 | -a "cd ~/xos/containers/cord-apps; make {{ item }}; sudo docker run xosproject/cord-app-{{ item }}" |
Andy Bavier | c2977cf | 2016-06-25 11:16:23 -0400 | [diff] [blame] | 13 | with_items: "{{ cord_apps }}" |
Zack Williams | 4b7682b | 2016-06-29 18:52:08 -0700 | [diff] [blame] | 14 | |
| 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 | |