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 - name: set xorg and xrandr in xorg_data dictionary
set_fact: set_fact:
xorg_data: '{{ xorg_data|combine({item[0]: item[1]}) }}' xorg_data: '{{ xorg_data|combine({"xorg": xorg, "xrandr": xrandr}) }}'
with_items:
- ('xorg', xorg) - name: print xorg_data
- ('xrandr', xrandr['Screen 0:']) debug:
var: xorg_data
- name: write xorg variable to /etc/yavdr/xorg.yml - name: write xorg variable to /etc/yavdr/xorg.yml
copy: copy:

View File

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