nodejs: update cache only on repository change

This commit is contained in:
Victor LABORIE 2017-05-03 17:15:52 +02:00
parent 1d42e9ac4b
commit fa1c9b9d77
1 changed files with 1 additions and 1 deletions

View File

@ -21,6 +21,7 @@
- name: Node sources list ({{ nodejs_apt_version }}) is available
apt_repository:
repo: "deb https://deb.nodesource.com/{{ nodejs_apt_version }} {{ ansible_distribution_release }} main"
update_cache: yes
state: present
tags:
- system
@ -30,7 +31,6 @@
- name: Node is installed
apt:
name: nodejs
update_cache: yes
state: present
tags:
- packages