blob: a7a38b87be1322a543dac81b7eba93f799b78a42 [file] [log] [blame]
Jonathan Hart93956f52017-08-22 13:12:42 -07001
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. Bainbridge317e7d72016-05-11 08:31:44 -070017---
18- name: User Local bin directory
19 file:
David K. Bainbridgeb5415042016-05-13 17:06:10 -070020 path=/home/{{ ansible_user }}/bin
David K. Bainbridge317e7d72016-05-11 08:31:44 -070021 state=directory
David K. Bainbridgeb5415042016-05-13 17:06:10 -070022 owner={{ ansible_user }}
23 group={{ ansible_user }}
David K. Bainbridge8b179042016-11-30 15:38:42 -080024 mode="0755"
David K. Bainbridge317e7d72016-05-11 08:31:44 -070025
26- name: Copy Utility Commands
27 copy:
28 src=files/bin/{{ item }}
David K. Bainbridgeb5415042016-05-13 17:06:10 -070029 dest=/home/{{ ansible_user }}/bin
30 owner={{ ansible_user }}
31 group={{ ansible_user }}
David K. Bainbridge8b179042016-11-30 15:38:42 -080032 mode="0755"
David K. Bainbridge317e7d72016-05-11 08:31:44 -070033 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. Bainbridgeb5415042016-05-13 17:06:10 -070042 dest=/home/{{ ansible_user }}/.bashrc
David K. Bainbridge317e7d72016-05-11 08:31:44 -070043 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. Bainbridgeb5415042016-05-13 17:06:10 -070050 dest=/home/{{ ansible_user }}
51 owner={{ ansible_user }}
52 group={{ ansible_user }}
David K. Bainbridge317e7d72016-05-11 08:31:44 -070053
54- name: ONOS Fabric Configuration
55 template:
56 src=templates/fabric-network-config.json.j2
David K. Bainbridgeb5415042016-05-13 17:06:10 -070057 dest=/home/{{ ansible_user }}/fabric-network.config.json
58 owner={{ ansible_user }}
59 group={{ ansible_user }}
David K. Bainbridge8b179042016-11-30 15:38:42 -080060 mode="0644"