Zack Williams | 003e153 | 2017-02-15 18:05:56 -0700 | [diff] [blame^] | 1 | --- |
| 2 | # vtn-refresh/defaults/main.yml |
| 3 | |
| 4 | - name: Refresh VTN state |
| 5 | shell: "sshpass -p 'karaf' ssh -p 8102 karaf@onos-cord {{ item }}" |
| 6 | ignore_errors: yes |
| 7 | with_items: |
| 8 | - "cordvtn-sync-neutron-states https://keystone.cord.lab:5000/v2.0 admin {{ keystone_admin_pass }}" |
| 9 | - "cordvtn-sync-xos-states http://xos:{{ xos_ui_port }} {{ xos_admin_user }} {{ xos_admin_pass }}" |
| 10 | - "cordvtn-purge-rules" |
| 11 | tags: |
| 12 | - skip_ansible_lint # running commands on ONOS |
| 13 | |
| 14 | - name: Reload compute nodes in VTN |
| 15 | shell: "sshpass -p 'karaf' ssh -p 8102 karaf@onos-cord cordvtn-node-init {{ hostvars[item]['ansible_hostname'] }}" |
| 16 | ignore_errors: yes |
| 17 | with_items: "{{ groups['compute'] }}" |
| 18 | tags: |
| 19 | - skip_ansible_lint # running commands on ONOS |
| 20 | |