|
@@ -0,0 +1,28 @@
|
|
1
|
+- name: Create temporary lights-web directory
|
|
2
|
+ file: state=directory path=/root/lights-web
|
|
3
|
+
|
|
4
|
+- name: Download lights-web source
|
|
5
|
+ get_url:
|
|
6
|
+ url="{{ lights_web_release }}"
|
|
7
|
+ dest=/root/lights-web/lights-web.zip
|
|
8
|
+
|
|
9
|
+- name: Remove old lights-web decompressed source
|
|
10
|
+ shell: rm -rf /root/lights-web/lights-web
|
|
11
|
+
|
|
12
|
+- name: Decompress lights-web release
|
|
13
|
+ unarchive: src=/root/lights-web/lights-web.zip
|
|
14
|
+ dest=/root/lights-web/ copy=no
|
|
15
|
+ creates=/root/lights-web/lights-web
|
|
16
|
+
|
|
17
|
+- name: Create lights-web webserver directory
|
|
18
|
+ file: state=directory path=/var/www/lights-web
|
|
19
|
+
|
|
20
|
+- name: Copy lights-web to webserver directory
|
|
21
|
+ shell: cp -R /root/lights-web/lights-web/* /var/www/lights-web
|
|
22
|
+
|
|
23
|
+- name: Create config file with lights-web credentials
|
|
24
|
+ template:
|
|
25
|
+ src=var_www_lights_web_lights_credentials.j2
|
|
26
|
+ dest=/var/www/lights-web/lights/credentials.js
|
|
27
|
+ owner=root
|
|
28
|
+ group=root
|