mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
services - is_rpi -> is_raspbian
This commit is contained in:
parent
ebf24417aa
commit
9d9997584e
15 changed files with 40 additions and 40 deletions
|
@ -51,7 +51,7 @@
|
|||
|
||||
- name: "Globally 'npm install' 8 Node-RED learning examples for RPi: node-red-contrib-ibm-watson-iot, node-red-contrib-play-audio, node-red-node-ledborg, node-red-node-ping, node-red-node-pi-sense-hat, node-red-node-random, node-red-node-serialport, node-red-node-smooth"
|
||||
command: npm install -g --unsafe-perm node-red-contrib-ibm-watson-iot node-red-contrib-play-audio node-red-node-ledborg node-red-node-ping node-red-node-pi-sense-hat node-red-node-random node-red-node-serialport node-red-node-smooth
|
||||
when: nodered_install and internet_available and is_rpi
|
||||
when: nodered_install and internet_available and is_raspbian
|
||||
|
||||
## To protect pre-installed packages within /usr/lib/node_modules in graphical
|
||||
## desktop OS's like Raspbian Desktop & Ubermix, we now only install those that
|
||||
|
@ -89,10 +89,10 @@
|
|||
# when: nodered_install and internet_available
|
||||
|
||||
- include_tasks: group.yml
|
||||
when: nodered_install and not is_rpi
|
||||
when: nodered_install and not is_raspbian
|
||||
|
||||
- include_tasks: rpi_desk.yml
|
||||
when: nodered_install and internet_available and is_rpi
|
||||
when: nodered_install and internet_available and is_raspbian
|
||||
|
||||
- name: Install /etc/systemd/system/nodered.service systemd unit file from template
|
||||
template:
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
#- name: Replace/Tweak "node-red-contrib-ibm-watson-iot/examples/Pi cpu temperature.json" (rpi)
|
||||
# command: 'curl -sL -o /usr/lib/node_modules/node-red-contrib-ibm-watson-iot/examples/Pi\ cpu\ temperature.json https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/Pi%20cpu%20temperature.json'
|
||||
# when: nodered_install and internet_available and is_rpi
|
||||
# when: nodered_install and internet_available and is_raspbian
|
||||
|
||||
- name: 'Download/Install 4 RPi executables to /usr/bin: node-red-start, node-red-stop, node-red-restart, node-red-log'
|
||||
get_url:
|
||||
|
|
|
@ -5,7 +5,7 @@ After=syslog.target network.target
|
|||
[Service]
|
||||
# Ansible template HAD: if is_debian_8 or is_debian_9 or is_ubuntu_16 or is_ubuntu_17
|
||||
# Ansible template HAD: if is_debuntu
|
||||
{% if is_rpi %}
|
||||
{% if is_raspbian %}
|
||||
ExecStart=/usr/bin/node-red-pi --max-old-space-size=128 -v
|
||||
{% else %}
|
||||
# ExecStart=/usr/local/bin/node-red-pi --max-old-space-size=128 -v
|
||||
|
@ -19,7 +19,7 @@ SyslogIdentifier=node-red
|
|||
StandardOutput=syslog
|
||||
|
||||
# non-root user to run as
|
||||
{% if is_rpi %}
|
||||
{% if is_raspbian %}
|
||||
WorkingDirectory=/home/pi/
|
||||
User=pi
|
||||
Group=pi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue