replace nodejs task by playbook
This commit is contained in:
parent
0581fc5d62
commit
805998a327
4 changed files with 5 additions and 15 deletions
|
@ -4,6 +4,7 @@
|
|||
roles:
|
||||
- nginx
|
||||
- postgresql
|
||||
- node
|
||||
- peertube
|
||||
|
||||
vars_files:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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?
|
||||
|
|
|
@ -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 }}'
|
||||
|
|
Loading…
Reference in a new issue