Add clean task + change from zip to tar + remove nginx_default_vhost_ssl var + use node playbook #6

Merged
meaz merged 16 commits from staging into main 2024-09-01 14:54:17 +02:00
4 changed files with 5 additions and 15 deletions
Showing only changes of commit 805998a327 - Show all commits

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 }}'