Zammad: Install recommende Nodejs version

https://docs.zammad.org/en/latest/install/source.html
This commit is contained in:
phil 2023-12-06 15:46:30 +01:00
parent ead5431ebe
commit 95a3ba934c
2 changed files with 17 additions and 1 deletions

View file

@ -31,3 +31,5 @@ zammad_service: zammad.service
zammad_rails_service: zammad-rails.service
zammad_websocket_service: zammad-websocket.service
zammad_worker_service: zammad-worker.service
zammad_nodejs_version: 20

View file

@ -29,10 +29,24 @@
- libyaml-dev
- locales
- moreutils
- nodejs
- patch
- pkg-config
- rbenv
- redis
- sudo
- zlib1g-dev
- name: "Packages | Add nodejs repository key"
ansible.builtin.apt_key:
url: https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key
keyring: /etc/apt/trusted.gpg.d/nodesource.asc
- name: "Packages | Add nodejs repository"
ansible.builtin.apt_repository:
repo: "deb [signed-by=/etc/apt/trusted.gpg.d/nodesource.asc] https://deb.nodesource.com/node_{{ zammad_nodejs_version }}.x nodistro main"
- name: "Packages | Install nodejs"
ansible.builtin.apt:
pkg:
- nodejs
update_cache: true