add drm to variables from facts if undefined

This commit is contained in:
Alexander Grothe 2019-01-07 21:44:04 +01:00
parent 8b885221ae
commit d4cbb054bd
2 changed files with 6 additions and 2 deletions

View File

@ -2548,13 +2548,15 @@ preferred_refreshrates:
- xorg is defined - xorg is defined
- drm is defined - drm is defined
- name: update xorg and xrandr variable with values from local facts if needed - name: update xorg, xrandr and drm variables with values from local facts if needed
set_fact: set_fact:
xorg: '{{ ansible_local.xorg.xorg }}' xorg: '{{ ansible_local.xorg.xorg }}'
xrandr: '{{ ansible_local.xrandr.xrandr }}' xrandr: '{{ ansible_local.xrandr.xrandr }}'
drm: '{{ ansible_local.drm.drm }}'
when: when:
- xrandr is undefined - xrandr is undefined
- xorg is undefined - xorg is undefined
- drm is undefined
# TODO: expand template for xorg.conf (or snippets) # TODO: expand template for xorg.conf (or snippets)
# with respect for the available graphics card driver # with respect for the available graphics card driver

View File

@ -139,13 +139,15 @@
- xorg is defined - xorg is defined
- drm is defined - drm is defined
- name: update xorg and xrandr variable with values from local facts if needed - name: update xorg, xrandr and drm variables with values from local facts if needed
set_fact: set_fact:
xorg: '{{ ansible_local.xorg.xorg }}' xorg: '{{ ansible_local.xorg.xorg }}'
xrandr: '{{ ansible_local.xrandr.xrandr }}' xrandr: '{{ ansible_local.xrandr.xrandr }}'
drm: '{{ ansible_local.drm.drm }}'
when: when:
- xrandr is undefined - xrandr is undefined
- xorg is undefined - xorg is undefined
- drm is undefined
# TODO: expand template for xorg.conf (or snippets) # TODO: expand template for xorg.conf (or snippets)
# with respect for the available graphics card driver # with respect for the available graphics card driver