From 687f9b0703b9e0d5a0ad233eb1b66f7432592fc9 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Tue, 13 May 2025 09:41:25 +0200 Subject: [PATCH] Solved health-csp bugs --- roles/health-csp/tasks/main.yml | 12 ++++++------ roles/npm/tasks/main.yml | 2 +- roles/npm/vars/main.yml | 2 -- 3 files changed, 7 insertions(+), 9 deletions(-) delete mode 100644 roles/npm/vars/main.yml diff --git a/roles/health-csp/tasks/main.yml b/roles/health-csp/tasks/main.yml index 174e1979..bd2b14c3 100644 --- a/roles/health-csp/tasks/main.yml +++ b/roles/health-csp/tasks/main.yml @@ -1,3 +1,9 @@ +- name: "create {{ health_csp_crawler_folder }}" + file: + path: "{{ health_csp_crawler_folder }}" + state: directory + mode: 0755 + - name: "Install puppeteer if node_modules not yet present" ansible.builtin.command: cmd: npm install puppeteer @@ -11,12 +17,6 @@ register: puppeteer_check failed_when: puppeteer_check.rc != 0 -- name: "create {{ health_csp_crawler_folder }}" - file: - path: "{{ health_csp_crawler_folder }}" - state: directory - mode: 0755 - - name: copy health_csp.py copy: src: health_csp.py diff --git a/roles/npm/tasks/main.yml b/roles/npm/tasks/main.yml index e5699931..589aa82f 100644 --- a/roles/npm/tasks/main.yml +++ b/roles/npm/tasks/main.yml @@ -3,7 +3,7 @@ name: npm state: present -- name: Run 'npm ci' in {{ npm_project_folder }} +- name: Run 'npm ci' command: npm ci args: chdir: "{{ npm_project_folder }}" diff --git a/roles/npm/vars/main.yml b/roles/npm/vars/main.yml deleted file mode 100644 index e682e89f..00000000 --- a/roles/npm/vars/main.yml +++ /dev/null @@ -1,2 +0,0 @@ -# Optional project folder to run 'npm ci' in -npm_project_folder: null \ No newline at end of file