Updated node and homebridge roles. Homebridge 1.0.0 released and breaks copy codec.
authorLuke Hoersten <luke@hoersten.org>
Fri, 01 May 2020 16:21:21 -0500
changeset 12 80a6e9af6aa9
parent 11 ba484e09107d
child 13 c74df4bbd49d
Updated node and homebridge roles. Homebridge 1.0.0 released and breaks copy codec.
homebridge/defaults/main.yaml
homebridge/tasks/main.yaml
nodejs/defaults/main.yaml
nodejs/tasks/main.yaml
--- a/homebridge/defaults/main.yaml	Mon Feb 17 19:01:58 2020 -0600
+++ b/homebridge/defaults/main.yaml	Fri May 01 16:21:21 2020 -0500
@@ -15,7 +15,7 @@
   - "homebridge-camera-ffmpeg"
   - "homebridge-roomba-stv"
 
-homebridge_rtsp_vcodec: "h264_omx"
+homebridge_rtsp_vcodec: "copy"
 homebridge_rtsp_debug: "false"
 homebridge_rtsp_max_streams: 5
 
--- a/homebridge/tasks/main.yaml	Mon Feb 17 19:01:58 2020 -0600
+++ b/homebridge/tasks/main.yaml	Fri May 01 16:21:21 2020 -0500
@@ -26,13 +26,11 @@
 
 - name: install homebridge
   become: yes
-  become_user: "{{homebridge_user}}"
   npm: name="homebridge" global="yes"
   notify: restart homebridge service
 
 - name: install platform accessories
   become: yes
-  become_user: "{{homebridge_user}}"
   npm: name="{{item}}" global="yes"
   notify: restart homebridge service
   with_items: "{{homebridge_npm_packages}}"
--- a/nodejs/defaults/main.yaml	Mon Feb 17 19:01:58 2020 -0600
+++ b/nodejs/defaults/main.yaml	Fri May 01 16:21:21 2020 -0500
@@ -1,7 +1,6 @@
 ---
 
-nodejs_tag: "latest-v11.x"
-nodejs_version: "11.15.0"
+nodejs_version: "v14.1.0"
 nodejs_arch: "{{ansible_architecture}}"
-nodejs_dir: "node-v{{nodejs_version}}-{{ansible_system | lower}}-{{nodejs_arch}}"
-nodejs_src: "https://nodejs.org/dist/{{nodejs_tag}}/{{nodejs_dir}}.tar.gz"
+nodejs_dir: "node-{{nodejs_version}}-{{ansible_system | lower}}-{{nodejs_arch}}"
+nodejs_src: "https://nodejs.org/dist/{{nodejs_version}}/{{nodejs_dir}}.tar.xz"
--- a/nodejs/tasks/main.yaml	Mon Feb 17 19:01:58 2020 -0600
+++ b/nodejs/tasks/main.yaml	Fri May 01 16:21:21 2020 -0500
@@ -3,10 +3,12 @@
 - name: download and unarchive nodejs
   become: yes
   unarchive:
-    src: "https://nodejs.org/dist/{{nodejs_tag}}/{{nodejs_dir}}.tar.xz"
+    src: "{{nodejs_src}}"
     dest: "/opt/"
     remote_src: yes
     creates: "/opt/{{nodejs_dir}}"
+    owner: "root"
+    group: "root"
 
 # sudo update-alternatives --install "/usr/bin/node" "node" "/opt/node/bin/node" 1
 - name: update node alterantives