check tasks list length

This commit is contained in:
Sergey Bubnov 2018-11-08 11:43:45 +04:00
parent 0ce23b4f80
commit 63c6f80fb3

View File

@ -42,7 +42,7 @@
shell: |
apt-get update
apt-get dist-upgrade -yq
when: stack.apt_sources_from_tasks is defined
when: stack.apt_sources_from_tasks is defined and stack.apt_sources_from_tasks | length > 0
- name: allow apt downgrade packages
template: