From a2ed663384b6b2118b36dd72b2f5403cc541e944 Mon Sep 17 00:00:00 2001 From: Alexander Meindl Date: Fri, 29 Sep 2023 05:07:08 +0200 Subject: [PATCH] Fix ansible linter offenses --- roles/ethercalc/handlers/main.yml | 1 + roles/ethercalc/tasks/setup.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/roles/ethercalc/handlers/main.yml b/roles/ethercalc/handlers/main.yml index c782fbb..bde55a1 100644 --- a/roles/ethercalc/handlers/main.yml +++ b/roles/ethercalc/handlers/main.yml @@ -9,4 +9,5 @@ ansible.builtin.command: npm clean-install args: chdir: "{{ ethercalc_path }}" + become: true become_user: "{{ ethercalc_user }}" diff --git a/roles/ethercalc/tasks/setup.yml b/roles/ethercalc/tasks/setup.yml index 376e49c..49ee48e 100644 --- a/roles/ethercalc/tasks/setup.yml +++ b/roles/ethercalc/tasks/setup.yml @@ -17,6 +17,7 @@ repo: "{{ ethercalc_repository }}" dest: "{{ ethercalc_path }}" version: "{{ ethercalc_repository_version }}" + become: true become_user: "{{ ethercalc_user }}" notify: - Install nodejs dependencies