Merge pull request 'replace nodejs task by playbook' (#1) from nodejs into staging

Reviewed-on: #1
Reviewed-by: muppeth <muppeth@no-reply@disroot.org>
This commit is contained in:
meaz 2024-07-13 07:54:14 +02:00
commit 0905610d95
4 changed files with 5 additions and 15 deletions

View file

@ -4,6 +4,7 @@
roles:
- nginx
- postgresql
- node
- peertube
vars_files:

View file

@ -13,7 +13,7 @@ Then you can then access Peertube from your computer on `http://192.168.33.15` (
## Playbook
The playbook includes postgresql and nginx roles and deploys entire stack needed to run lemmy. Additional roles are also available in the Ansible roles repos in git.
The playbook includes postgresql, nginx and node roles and deploys entire stack needed to run lemmy. Additional roles are also available in the Ansible roles repos in git.
## Tags

View file

@ -1,9 +1,11 @@
---
# Nodejs
nodejs_version: '18'
peertube_user: 'peertube'
peertube_group: 'peertube'
peertube_app_dir: '/var/www/peertube'
peertube_nodejs_version: '18'
peertube_apt_list:
- curl
- sudo
@ -12,7 +14,6 @@ peertube_apt_list:
- redis-server
- ffmpeg
#- yarn # installed with npm
- nodejs
- python3-dev
- python-is-python3
## following needed?

View file

@ -1,17 +1,5 @@
---
- name: '[INSTALLDEPS] - Add Nodesource apt key'
apt_key:
url: https://keyserver.ubuntu.com/pks/lookup?op=get&fingerprint=on&search=0x1655A0AB68576280
id: "68576280"
state: present
- name: '[INSTALLDEPS] - Add repository for nodejs'
apt_repository:
repo: deb https://deb.nodesource.com/node_{{ peertube_nodejs_version }}.x {{ ansible_distribution_release }} main
state: present
filename: 'nodesource'
- name: '[INSTALLDEPS] - Install dependencies'
apt:
name: '{{ peertube_apt_list }}'