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