forked from ISTI-ansible-roles/ansible-roles
node_js: fix the apt tasks.
This commit is contained in:
parent
ba175a030a
commit
140a916e99
|
@ -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' ]
|
||||
|
|
Loading…
Reference in New Issue