node_js: fix the apt tasks.

This commit is contained in:
Andrea Dell'Amico 2019-03-25 13:19:47 +01:00
parent ba175a030a
commit 140a916e99
1 changed files with 3 additions and 6 deletions

View File

@ -7,8 +7,7 @@
with_items: '{{ node_js_repo_urls }}'
- name: Install the Node.js packages
apt: pkg={{ item }} state={{ node_js_pkg_state }} update_cache=True cache_valid_time=1800
with_items: '{{ node_js_pkgs }}'
apt: pkg={{ node_js_pkgs }} state={{ node_js_pkg_state }} update_cache=True cache_valid_time=1800
tags: [ 'nodejs', 'node_js' ]
@ -21,8 +20,7 @@
with_items: '{{ node_js_yarn_repo_urls }}'
- name: Install the Node.js yarn packages
apt: pkg={{ item }} state={{ node_js_pkg_state }} update_cache=True cache_valid_time=1800
with_items: '{{ node_js_yarn_pkgs }}'
apt: pkg={{ node_js_yarn_pkgs }} state={{ node_js_pkg_state }} update_cache=True cache_valid_time=1800
when: node_js_yarn_install
tags: [ 'nodejs', 'node_js', 'yarn', 'node_js_yarn' ]
@ -33,8 +31,7 @@
with_items: '{{ node_js_yarn_repo_urls }}'
- name: Install the Node.js yarn packages
apt: pkg={{ item }} state=absent update_cache=True cache_valid_time=1800
with_items: '{{ node_js_yarn_pkgs }}'
apt: pkg={{ node_js_yarn_pkgs }} state=absent update_cache=True cache_valid_time=1800
when: not node_js_yarn_install
tags: [ 'nodejs', 'node_js', 'yarn', 'node_js_yarn' ]