blob: d63310489268fbe57ef0fdc98a50ae92dc61fc0d [file] [log] [blame]
David K. Bainbridge317e7d72016-05-11 08:31:44 -07001---
2- name: User Local bin directory
3 file:
David K. Bainbridgeb5415042016-05-13 17:06:10 -07004 path=/home/{{ ansible_user }}/bin
David K. Bainbridge317e7d72016-05-11 08:31:44 -07005 state=directory
David K. Bainbridgeb5415042016-05-13 17:06:10 -07006 owner={{ ansible_user }}
7 group={{ ansible_user }}
David K. Bainbridge317e7d72016-05-11 08:31:44 -07008 mode=0755
9
10- name: Copy Utility Commands
11 copy:
12 src=files/bin/{{ item }}
David K. Bainbridgeb5415042016-05-13 17:06:10 -070013 dest=/home/{{ ansible_user }}/bin
14 owner={{ ansible_user }}
15 group={{ ansible_user }}
David K. Bainbridge317e7d72016-05-11 08:31:44 -070016 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. Bainbridgeb5415042016-05-13 17:06:10 -070026 dest=/home/{{ ansible_user }}/.bashrc
David K. Bainbridge317e7d72016-05-11 08:31:44 -070027 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. Bainbridgeb5415042016-05-13 17:06:10 -070034 dest=/home/{{ ansible_user }}
35 owner={{ ansible_user }}
36 group={{ ansible_user }}
David K. Bainbridge317e7d72016-05-11 08:31:44 -070037
38- name: ONOS Fabric Configuration
39 template:
40 src=templates/fabric-network-config.json.j2
David K. Bainbridgeb5415042016-05-13 17:06:10 -070041 dest=/home/{{ ansible_user }}/fabric-network.config.json
42 owner={{ ansible_user }}
43 group={{ ansible_user }}
David K. Bainbridge317e7d72016-05-11 08:31:44 -070044 mode=0644