David K. Bainbridge | 317e7d7 | 2016-05-11 08:31:44 -0700 | [diff] [blame] | 1 | --- |
| 2 | - name: User Local bin directory |
| 3 | file: |
| 4 | path={{ ansible_env.HOME }}/bin |
| 5 | state=directory |
| 6 | owner=ubuntu |
| 7 | group=ubuntu |
| 8 | mode=0755 |
| 9 | |
| 10 | - name: Copy Utility Commands |
| 11 | copy: |
| 12 | src=files/bin/{{ item }} |
| 13 | dest={{ ansible_env.HOME }}/bin |
| 14 | owner=ubuntu |
| 15 | group=ubuntu |
| 16 | mode=0755 |
| 17 | with_items: |
| 18 | - minify |
| 19 | - onos-cfg-get |
| 20 | - onos-cfg-post |
| 21 | - onos-cfg-delete |
| 22 | - ping-test.sh |
| 23 | |
| 24 | - name: Include Utility Commands in User Path |
| 25 | lineinfile: |
| 26 | dest={{ ansible_env.HOME }}/.bashrc |
| 27 | line="PATH=$HOME/bin:$PATH" |
| 28 | state=present |
| 29 | insertafter=EOF |
| 30 | |
| 31 | - name: Custom ONOS |
| 32 | unarchive: |
| 33 | src=files/onos-1.6.0.ubuntu.tar.gz |
| 34 | dest={{ ansible_env.HOME }} |
| 35 | owner=ubuntu |
| 36 | group=ubuntu |
| 37 | |
| 38 | - name: ONOS Fabric Configuration |
| 39 | template: |
| 40 | src=templates/fabric-network-config.json.j2 |
| 41 | dest={{ ansible_env.HOME }}/fabric-network.config.json |
| 42 | owner=ubuntu |
| 43 | group=ubuntu |
| 44 | mode=0644 |
| 45 | |