blob: b77a9f6625ab98b6a65853dbf56836762c92bf74 [file] [log] [blame]
Sergio Slobodrianee4b2bc2017-06-05 10:08:59 -04001- name: The apt-repository is copied
2 copy:
3 src: "{{ cord_home }}/incubator/voltha/install/apt-mirror"
4 dest: /home/vinstall
5 owner: vinstall
6 group: vinstall
7 tags: [apt]
8- name: Nginx is installed
9 apt:
10 name: nginx
11 state: latest
12 tags: [apt]
13
14- name: Nginx config is copied
15 copy:
16 src: "{{ cord_home }}/incubator/voltha/install/nginx-default"
17 dest: /etc/nginx/sites-enabled/default
18 register: copy_result
19 tags: [apt]
20
21- name: nginx is restarted
22 command: service nginx restart
23 when: copy_result|changed
24 tags: [apt]
25
26#- name: NFS is installed TESTING ONLY REMOVE FOR PRODUCTION
27# apt:
28# name: nfs-common
29# state: latest
30# tags: [apt]
31#
32#- name: Apt repo is mounted TESTING ONLY REMOVE FOR PRODUCTION
33# mount:
34# name: /home/vinstall/apt-mirror
35# src: "{{ mount_host }}:{{ cord_home }}/incubator/voltha/install/apt-mirror"
36# fstype: nfs
37# state: mounted
38# tags: [apt]
39
40- name: Links to the repos are created
41 file:
42 src: /home/vinstall/apt-mirror/mirror/archive.ubuntu.com/ubuntu
43 dest: /var/www/ubuntu
44 state: link
45 tags: [apt]