Correcting rules for npm.
This commit is contained in:
parent
bed21a5dec
commit
14e7126cca
@ -11,7 +11,7 @@
|
|||||||
state: present
|
state: present
|
||||||
become: yes
|
become: yes
|
||||||
with_items: "{{ hostvars.localhost.addpkg }}"
|
with_items: "{{ hostvars.localhost.addpkg }}"
|
||||||
when: hostvars.localhost.addpkg|join(' ')|trim != ''
|
when: hostvars.localhost.addpkg is defined and hostvars.localhost.addpkg|join(' ')|trim != ''
|
||||||
|
|
||||||
- name: Removing packages for specific role from NetworkPackageManager
|
- name: Removing packages for specific role from NetworkPackageManager
|
||||||
apt:
|
apt:
|
||||||
@ -19,7 +19,7 @@
|
|||||||
state: absent
|
state: absent
|
||||||
purge: yes
|
purge: yes
|
||||||
with_items: "{{ hostvars.localhost.delpkg }}"
|
with_items: "{{ hostvars.localhost.delpkg }}"
|
||||||
when: hostvars.localhost.delpkg|join(' ')|trim != ''
|
when: hostvars.localhost.delpkg is defined and hostvars.localhost.delpkg|join(' ')|trim != ''
|
||||||
|
|
||||||
- name: Updating local hash for packages
|
- name: Updating local hash for packages
|
||||||
shell: 'rm -f {{ ansible_local.checksum.pkgver_file }} && echo "{{ ansible_local.checksum.pkgver }}" > {{ ansible_local.checksum.pkgver_file }}'
|
shell: 'rm -f {{ ansible_local.checksum.pkgver_file }} && echo "{{ ansible_local.checksum.pkgver }}" > {{ ansible_local.checksum.pkgver_file }}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user