From e2d9a3392cf8b5c0c36df661e0d141d1a9ac2a6b Mon Sep 17 00:00:00 2001 From: Mathijs de Bruin Date: Wed, 6 Jul 2022 10:38:51 +0100 Subject: [PATCH] Workaround for NPM bug https://github.com/npm/cli/issues/4769 --- roles/api/tasks/main.yml | 5 +++-- roles/nsfw_server/tasks/main.yml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/roles/api/tasks/main.yml b/roles/api/tasks/main.yml index 430ec27..31a21ed 100644 --- a/roles/api/tasks/main.yml +++ b/roles/api/tasks/main.yml @@ -35,9 +35,10 @@ group: "{{ api_group }}" system: true state: present - home: /nonexistent - create_home: no shell: /usr/sbin/nologin + # https://github.com/npm/cli/issues/4769 + # home: /nonexistent + # create_home: no - name: Install ipfs-search service template: src=ipfs-search.service dest=/etc/systemd/system/ipfs-search.service notify: restart ipfs-search diff --git a/roles/nsfw_server/tasks/main.yml b/roles/nsfw_server/tasks/main.yml index f865165..47622af 100644 --- a/roles/nsfw_server/tasks/main.yml +++ b/roles/nsfw_server/tasks/main.yml @@ -37,9 +37,10 @@ group: "{{ nsfw_server_group }}" system: true state: present - home: /nonexistent - create_home: no shell: /usr/sbin/nologin + # https://github.com/npm/cli/issues/4769 + # home: /nonexistent + # create_home: no - name: Install ipfs-search service template: src: nsfw-server.service