Jonathan Hart | 93956f5 | 2017-08-22 13:12:42 -0700 | [diff] [blame] | 1 | |
| 2 | # Copyright 2017-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | |
David K. Bainbridge | 317e7d7 | 2016-05-11 08:31:44 -0700 | [diff] [blame] | 17 | --- |
| 18 | - name: User Local bin directory |
| 19 | file: |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 20 | path=/home/{{ ansible_user }}/bin |
David K. Bainbridge | 317e7d7 | 2016-05-11 08:31:44 -0700 | [diff] [blame] | 21 | state=directory |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 22 | owner={{ ansible_user }} |
| 23 | group={{ ansible_user }} |
David K. Bainbridge | 8b17904 | 2016-11-30 15:38:42 -0800 | [diff] [blame] | 24 | mode="0755" |
David K. Bainbridge | 317e7d7 | 2016-05-11 08:31:44 -0700 | [diff] [blame] | 25 | |
| 26 | - name: Copy Utility Commands |
| 27 | copy: |
| 28 | src=files/bin/{{ item }} |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 29 | dest=/home/{{ ansible_user }}/bin |
| 30 | owner={{ ansible_user }} |
| 31 | group={{ ansible_user }} |
David K. Bainbridge | 8b17904 | 2016-11-30 15:38:42 -0800 | [diff] [blame] | 32 | mode="0755" |
David K. Bainbridge | 317e7d7 | 2016-05-11 08:31:44 -0700 | [diff] [blame] | 33 | with_items: |
| 34 | - minify |
| 35 | - onos-cfg-get |
| 36 | - onos-cfg-post |
| 37 | - onos-cfg-delete |
| 38 | - ping-test.sh |
| 39 | |
| 40 | - name: Include Utility Commands in User Path |
| 41 | lineinfile: |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 42 | dest=/home/{{ ansible_user }}/.bashrc |
David K. Bainbridge | 317e7d7 | 2016-05-11 08:31:44 -0700 | [diff] [blame] | 43 | line="PATH=$HOME/bin:$PATH" |
| 44 | state=present |
| 45 | insertafter=EOF |
| 46 | |
| 47 | - name: Custom ONOS |
| 48 | unarchive: |
| 49 | src=files/onos-1.6.0.ubuntu.tar.gz |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 50 | dest=/home/{{ ansible_user }} |
| 51 | owner={{ ansible_user }} |
| 52 | group={{ ansible_user }} |
David K. Bainbridge | 317e7d7 | 2016-05-11 08:31:44 -0700 | [diff] [blame] | 53 | |
| 54 | - name: ONOS Fabric Configuration |
| 55 | template: |
| 56 | src=templates/fabric-network-config.json.j2 |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 57 | dest=/home/{{ ansible_user }}/fabric-network.config.json |
| 58 | owner={{ ansible_user }} |
| 59 | group={{ ansible_user }} |
David K. Bainbridge | 8b17904 | 2016-11-30 15:38:42 -0800 | [diff] [blame] | 60 | mode="0644" |