From 418f268cdf5c81fe27d8e4a08d6d91b6f957b430 Mon Sep 17 00:00:00 2001 From: p-netm Date: Wed, 5 Feb 2020 17:32:21 +0300 Subject: [PATCH] Revert "Modify startup scripts to run as user not root" This reverts commit 447c8e8e6fa091700ba491933f36ff061db2a72f. --- tasks/configure.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index 2f1ee80..39493fd 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -61,7 +61,7 @@ - name: delete the old startup file become: true - become_user: "{{ express_system_user }}" + become_user: "root" command: "{{ express_pm2_path }} unstartup -u {{ express_system_user }} --service-name {{ express_service_name }} --hp {{ express_system_user_home }}" ignore_errors: yes notify: @@ -69,7 +69,7 @@ - name: Generate an express PM2 init service file become: true - become_user: "{{ express_system_user }}" + become_user: "root" command: "{{ express_pm2_path }} startup -u {{ express_system_user }} --hp {{ express_system_user_home }} --service-name {{ express_service_name }}" notify: - start_express_service