fix dictionary creation

This commit is contained in:
Alexander Grothe 2018-01-16 15:07:18 +01:00
parent 06ee0d83a8
commit 9c17b948af
2 changed files with 10 additions and 8 deletions

View File

@ -1910,10 +1910,11 @@ xorg_data: {}
- name: set xorg and xrandr in xorg_data dictionary
set_fact:
xorg_data: '{{ xorg_data|combine({item[0]: item[1]}) }}'
with_items:
- ('xorg', xorg)
- ('xrandr', xrandr['Screen 0:'])
xorg_data: '{{ xorg_data|combine({"xorg": xorg, "xrandr": xrandr}) }}'
- name: print xorg_data
debug:
var: xorg_data
- name: write xorg variable to /etc/yavdr/xorg.yml
copy:

View File

@ -108,10 +108,11 @@
- name: set xorg and xrandr in xorg_data dictionary
set_fact:
xorg_data: '{{ xorg_data|combine({item[0]: item[1]}) }}'
with_items:
- ('xorg', xorg)
- ('xrandr', xrandr['Screen 0:'])
xorg_data: '{{ xorg_data|combine({"xorg": xorg, "xrandr": xrandr}) }}'
- name: print xorg_data
debug:
var: xorg_data
- name: write xorg variable to /etc/yavdr/xorg.yml
copy: