diff --git a/webapps/hedgedoc/defaults/main.yml b/webapps/hedgedoc/defaults/main.yml index cff858b3..c9fe250b 100644 --- a/webapps/hedgedoc/defaults/main.yml +++ b/webapps/hedgedoc/defaults/main.yml @@ -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'] diff --git a/webapps/hedgedoc/tasks/main.yml b/webapps/hedgedoc/tasks/main.yml index cf2a9864..80e3cd2c 100644 --- a/webapps/hedgedoc/tasks/main.yml +++ b/webapps/hedgedoc/tasks/main.yml @@ -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: