From 140a916e990ef9eb73994d1083bf7c69c99f15fd Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 25 Mar 2019 13:19:47 +0100 Subject: [PATCH] node_js: fix the apt tasks. --- node_js/tasks/main.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/node_js/tasks/main.yml b/node_js/tasks/main.yml index 44cdce16..0dc52dbc 100644 --- a/node_js/tasks/main.yml +++ b/node_js/tasks/main.yml @@ -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' ]