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'