From 61df9ea0591a44c38c048f9d1a075839a06f3134 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Tue, 17 Sep 2024 02:04:41 -0700 Subject: [PATCH] fix duplicate when --- .../ansible/roles/setup_lib_npm/tasks/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/archivebox/builtin_plugins/ansible/roles/setup_lib_npm/tasks/main.yml b/archivebox/builtin_plugins/ansible/roles/setup_lib_npm/tasks/main.yml index 4e858b61..bf5b627d 100755 --- a/archivebox/builtin_plugins/ansible/roles/setup_lib_npm/tasks/main.yml +++ b/archivebox/builtin_plugins/ansible/roles/setup_lib_npm/tasks/main.yml @@ -44,10 +44,8 @@ register: node_repo - name: Update apt cache if repo was added. - when: ansible_facts['os_family']|lower == 'debian' ansible.builtin.apt: update_cache=yes - when: node_repo is changed - tags: ['skip_ansible_lint'] + when: ansible_facts['os_family']|lower == 'debian' and node_repo is changed - name: Ensure Node.js and npm are installed. when: ansible_facts['os_family']|lower == 'debian'