WIP: Deploying v1.9.9 with Node 18.x on Deb 12
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |3149|0|3149|0|:zzz:
gitea/ansible-roles/pipeline/head This commit looks good

This commit is contained in:
Mathieu Gauthier-Pilote 2024-06-12 15:46:12 -04:00
parent e6969d76ba
commit e787d62926
2 changed files with 10 additions and 4 deletions

View file

@ -1,9 +1,9 @@
---
# defaults file for mastodon
system_dep: "['apt-transport-https', 'postgresql', 'python3-psycopg2', 'nginx', 'git', 'wget', 'certbot']"
system_dep: "['apt-transport-https', 'postgresql', 'python3-psycopg2', 'nginx', 'git', 'wget', 'certbot', 'npm']"
git_url: 'https://github.com/hedgedoc/hedgedoc.git'
git_version: '1.9.7'
node_version: 'node_16.x' # Node 18 is NOT supported as of May 2023; See https://docs.hedgedoc.org/setup/manual-setup/
node_version: 'node_18.x' # Node 18 is NOT supported as of May 2023; See https://docs.hedgedoc.org/setup/manual-setup/
node_port: '3000'
service: 'example'
domains: ['example.domain.org']

View file

@ -7,10 +7,16 @@
update_cache: yes
- name: Install node-gyp from npm
shell: npm install --global node-gyp
shell: npm install --global node-gyp corepack
- name: Enable yarn (via corepack)
shell: "corepack enable; yarn set version classic"
shell: "corepack enable"
- name: Fix permissions
file:
path: /usr/local/lib/node_modules
mode: g+rx,o+rx
recurse: yes
- name: Add UNIX account
user: