Fixing bug that blocks configuration chain when role-specific package list is empty.
This commit is contained in:
parent
656e3fce7a
commit
b3581a0b8f
@ -11,6 +11,7 @@
|
|||||||
state: present
|
state: present
|
||||||
sudo: yes
|
sudo: yes
|
||||||
with_items: "{{ addpkg }}"
|
with_items: "{{ addpkg }}"
|
||||||
|
when: addpkg|join(' ')|trim != ''
|
||||||
|
|
||||||
- name: Removing packages for specific role from NetworkPackageManager
|
- name: Removing packages for specific role from NetworkPackageManager
|
||||||
apt:
|
apt:
|
||||||
@ -18,6 +19,7 @@
|
|||||||
state: absent
|
state: absent
|
||||||
purge: yes
|
purge: yes
|
||||||
with_items: "{{ delpkg }}"
|
with_items: "{{ delpkg }}"
|
||||||
|
when: 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