| - name: Openflow Agent Debian Archive |
| url: http://github.com/ciena/ZeroTouchProvisioning/raw/master/ofdpa-i.12.1.1_12.1.1%2Baccton1.7-1_amd64.deb |
| dest: /mnt/flash2/ofdpa-i.12.1.1_12.1.1%2Baccton1.7-1_amd64.deb |
| - name: Verify Service Exists |
| - name: OpenFlow Agent Stopped |
| service: name=ofdpa state=stopped |
| when: ofdpa_stat.stat.exists |
| - name: Verify Distributeion Release File |
| - name: Verify Distribute Name |
| shell: grep -i ubuntu /etc/lsb-release | wc -l |
| apt: deb="/mnt/flash2/ofdpa-i.12.1.1_12.1.1%2Baccton1.7-1_amd64.deb" force=true |
| when: not lsb_stat.stat.exists or dist.stdout == "0" |
| - name: OpenFlow Agent Started |
| service: name=ofdpa state=started |
| when: not lsb_stat.stat.exists or dist.stdout == "0" |
| - name: Mark Persist Openflow Agent |
| command: persist /etc/accton/ofdpa.conf |
| - name: Persist Openflow Agent |