| shell: ifconfig ma1 | grep HWaddr | awk '{ print "0x0000"$5 }' | sed s/://g |
| - name: Ensure ofdpa Config |
| switch_id: "{{ dpid.stdout }}" |
| controller_ip: "onos-fabric" |
| - name: Verify Openflow Agent |
| shell: which ofdpa | wc -w |
| - name: Openflow Agent Version |
| when: ofdpa_exists.stdout != "0" |
| - name: Version I.12.1.1+1.1 Openflow Agent |
| when: ofdpa_exists.stdout == "0" or ofdpa_version.stdout.find('version I.12.1.1+1.1') == -1 |
| - name: Utilities Scripts |
| - name: Mark Utilities Persistent |
| command: persist {{ item }} |
| - name: Authorize SSH Key |
| - name: Mark SSH Key Persistent |
| command: persist /root/.ssh/authorized_keys |
| when: utils.changed or sshkey.changed |