fixed package dict to list convert

This commit is contained in:
nd 2019-01-11 01:15:45 +01:00
parent 56c2799e56
commit 8c485daf26
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9

View file

@ -1,7 +1,7 @@
--- ---
- name: install basic packages - name: install basic packages
apt: apt:
pkg: "{{ packages }}" pkg: "{{ packages | dict2items | rejectattr('value', 'none') | map(attribute='key') | list }}"
update_cache: yes update_cache: yes
- name: copy environment - name: copy environment