Zack Williams | 97bbf0b | 2017-08-01 22:50:08 -0700 | [diff] [blame] | 1 | --- |
| 2 | # onos-debug/tasks/main.yml |
| 3 | |
| 4 | - name: Wait for apps to load via profle, and onos-cord container to be accessible via SSH |
| 5 | wait_for: |
| 6 | host: localhost |
| 7 | port: "{{ onos_cord_port }}" |
| 8 | search_regex: "SSHD-CORE" |
| 9 | delay: 30 |
| 10 | timeout: 180 |
| 11 | |
| 12 | - name: Enable ONOS debugging for specific apps |
| 13 | shell: "sshpass -p 'karaf' ssh -p {{ onos_cord_port }} karaf@localhost log:set {{ onos_debug_level }} {{ item }}" |
| 14 | ignore_errors: yes |
| 15 | with_items: "{{ onos_debug_appnames }}" |
| 16 | tags: |
| 17 | - skip_ansible_lint # collecting docker container names |
| 18 | |