48 lines
1.1 KiB
YAML
Executable File
48 lines
1.1 KiB
YAML
Executable File
---
|
|
- hosts: testDsiPi
|
|
remote_user: sysop
|
|
become: yes
|
|
tasks:
|
|
|
|
- name: install "splash screen"
|
|
apt:
|
|
name: rpd-plym-splash
|
|
state: present
|
|
|
|
- name: Active SPI
|
|
shell:
|
|
cmd: echo "dtparam=spi=on" >> /boot/config.txt
|
|
|
|
- name: Ajout du dépot nodes js
|
|
shell: curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
|
|
|
|
- name: install "nodejs"
|
|
apt:
|
|
name: nodejs
|
|
state: present
|
|
|
|
- name: Pour nodejs, installation de "gcc" pour la compilation
|
|
apt:
|
|
name: gcc
|
|
state: present
|
|
|
|
- name: Pour nodejs, installation de "g++" pour la compilation
|
|
apt:
|
|
name: g++
|
|
state: present
|
|
|
|
- name: Pour nodejs, installation de "make" pour la compilation
|
|
apt:
|
|
name: make
|
|
state: present
|
|
|
|
- name: Pour nodejs, installation de "apt-transport-https" pour la compilation
|
|
apt:
|
|
name: apt-transport-https
|
|
state: present
|
|
|
|
- name: Installation des modules node js
|
|
shell:
|
|
cmd: npm i
|
|
chdir: /home/sysop/nodeJsVma405/
|