David K. Bainbridge | 317e7d7 | 2016-05-11 08:31:44 -0700 | [diff] [blame] | 1 | --- |
| 2 | - name: User Local bin directory |
| 3 | file: |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 4 | path=/home/{{ ansible_user }}/bin |
David K. Bainbridge | 317e7d7 | 2016-05-11 08:31:44 -0700 | [diff] [blame] | 5 | state=directory |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 6 | owner={{ ansible_user }} |
| 7 | group={{ ansible_user }} |
David K. Bainbridge | 317e7d7 | 2016-05-11 08:31:44 -0700 | [diff] [blame] | 8 | mode=0755 |
| 9 | |
| 10 | - name: Copy Utility Commands |
| 11 | copy: |
| 12 | src=files/bin/{{ item }} |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 13 | dest=/home/{{ ansible_user }}/bin |
| 14 | owner={{ ansible_user }} |
| 15 | group={{ ansible_user }} |
David K. Bainbridge | 317e7d7 | 2016-05-11 08:31:44 -0700 | [diff] [blame] | 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: |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 26 | dest=/home/{{ ansible_user }}/.bashrc |
David K. Bainbridge | 317e7d7 | 2016-05-11 08:31:44 -0700 | [diff] [blame] | 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 |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 34 | dest=/home/{{ ansible_user }} |
| 35 | owner={{ ansible_user }} |
| 36 | group={{ ansible_user }} |
David K. Bainbridge | 317e7d7 | 2016-05-11 08:31:44 -0700 | [diff] [blame] | 37 | |
| 38 | - name: ONOS Fabric Configuration |
| 39 | template: |
| 40 | src=templates/fabric-network-config.json.j2 |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 41 | dest=/home/{{ ansible_user }}/fabric-network.config.json |
| 42 | owner={{ ansible_user }} |
| 43 | group={{ ansible_user }} |
David K. Bainbridge | 317e7d7 | 2016-05-11 08:31:44 -0700 | [diff] [blame] | 44 | mode=0644 |
| 45 | |