From 62a7145f3a331d1dc43d78bce80cd8ef5f1c1a9e Mon Sep 17 00:00:00 2001 From: meaz Date: Tue, 16 Apr 2024 22:58:44 +0200 Subject: [PATCH] build admin page (#22) Fix the issue with admin page. Also, I know we got that discussion already for cryptpad, but I removed npm package as it is already installed with nodejs even on bookworm. Otherwise I get an error as it is trying to install`npm=9.2.0` whereas with nodejs you get `npm=10.5.0` Reviewed-on: https://git.disroot.org/Disroot-Ansible/etherpad/pulls/22 Reviewed-by: muppeth Co-authored-by: meaz Co-committed-by: meaz --- defaults/main.yml | 3 ++- tasks/install.yml | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index db75396..2f1090e 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -54,9 +54,10 @@ etherpad_nodejs_version: '21' etherpad_apt: - curl - nodejs - - npm - git +etherpad_admin_page: 'true' # set to something else if you don't want to build admin page + etherpad_plugins_list: ep_adminpads2: enabled ep_comments_page: enabled diff --git a/tasks/install.yml b/tasks/install.yml index 3282f5f..c7fb44c 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -7,3 +7,12 @@ chdir: "{{ etherpad_app_dir }}/app" become: yes become_user: "{{ etherpad_username }}" + +- name: '[INSTALL] - Build admin pages with pnpm' + shell: + cmd: pnpm run build + args: + chdir: "{{ etherpad_app_dir }}/app/admin" + become: yes + become_user: "{{ etherpad_username }}" + when: etherpad_admin_page == "true" \ No newline at end of file