| - name: Openflow Agent Debian Archive |
| url: https://github.com/onfsdn/atrium-docs/raw/master/16A/ONOS/builds/ofdpa-3.0-ea0_3.0.0.0%2Baccton1.0-1_amd64.deb |
| dest: /mnt/onl/data/ofdpa-3.0-ea0_3.0.0.0+accton1.0-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/onl/data/ofdpa-3.0-ea0_3.0.0.0+accton1.0-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" |