fix duplicate when

This commit is contained in:
Nick Sweeting 2024-09-17 02:04:41 -07:00
parent 2c8779736a
commit 61df9ea059
No known key found for this signature in database

View file

@ -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'