---
# onos-load-apps/tasks/main.yml
#
# Install CORD ONOS apps from local containers

- name: Disable loading from Maven repo
  command: ansible xos-1 -u ubuntu -m lineinfile \
    -a "dest=~/service-profile/{{ xos_configuration }}/make-vtn-external-yaml.sh state=absent regexp='install_dependencies'"

- name: Load the apps using Docker
  command: ansible xos-1 -u ubuntu -m shell \
    -a "cd ~/xos/containers/cord-apps; make {{ item }}; docker run xosproject/cord-app-{{ item }}"
  with_items: "{{ cord_apps }}"

- name: Enable debugging for cord apps
  shell: "sshpass -p 'karaf' ssh -p 8101 karaf@onos-cord-1 log:set DEBUG org.opencord.{{ item }}"
  with_items: "{{ cord_apps }}"


---
# onos-load-apps/tasks/main.yml
#
# Install CORD ONOS apps from local containers

- name: Disable loading from Maven repo
  command: ansible xos-1 -u ubuntu -m lineinfile \
    -a "dest=~/service-profile/{{ xos_configuration }}/make-vtn-external-yaml.sh state=absent regexp='install_dependencies'"

- name: Load the apps using Docker
  command: ansible xos-1 -u ubuntu -m shell \
    -a "cd ~/xos/containers/cord-apps; make {{ item }}; sudo docker run xosproject/cord-app-{{ item }}"
  with_items: "{{ cord_apps }}"

- name: Enable debugging for cord apps
  shell: "sshpass -p 'karaf' ssh -p 8101 karaf@onos-cord-1 log:set DEBUG org.opencord.{{ item }}"
  with_items: "{{ cord_apps }}"


Fix failure with single-node pod install
Fix failure with single-node pod install

Change-Id: I1c72be8a138cfbe2fe7882e22d40bb0e8c173f5d
