blob: 036593fd98eedf7a2a800f0ee7ef3d32ef5bc0ff [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. Bainbridge8b179042016-11-30 15:38:42 -08008 mode="0755"
David K. Bainbridge317e7d72016-05-11 08:31:44 -07009
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. Bainbridge8b179042016-11-30 15:38:42 -080016 mode="0755"
David K. Bainbridge317e7d72016-05-11 08:31:44 -070017 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. Bainbridge8b179042016-11-30 15:38:42 -080044 mode="0644"