From d4cbb054bd49b267d5262f7fbb5d7442eaeb78cf Mon Sep 17 00:00:00 2001 From: Alexander Grothe Date: Mon, 7 Jan 2019 21:44:04 +0100 Subject: [PATCH] add drm to variables from facts if undefined --- Manual.org | 4 +++- roles/yavdr-xorg/tasks/detect-xorg.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Manual.org b/Manual.org index c999dd5..8956295 100644 --- a/Manual.org +++ b/Manual.org @@ -2548,13 +2548,15 @@ preferred_refreshrates: - xorg 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: xorg: '{{ ansible_local.xorg.xorg }}' xrandr: '{{ ansible_local.xrandr.xrandr }}' + drm: '{{ ansible_local.drm.drm }}' when: - xrandr is undefined - xorg is undefined + - drm is undefined # TODO: expand template for xorg.conf (or snippets) # with respect for the available graphics card driver diff --git a/roles/yavdr-xorg/tasks/detect-xorg.yml b/roles/yavdr-xorg/tasks/detect-xorg.yml index a5b068c..e235fab 100644 --- a/roles/yavdr-xorg/tasks/detect-xorg.yml +++ b/roles/yavdr-xorg/tasks/detect-xorg.yml @@ -139,13 +139,15 @@ - xorg 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: xorg: '{{ ansible_local.xorg.xorg }}' xrandr: '{{ ansible_local.xrandr.xrandr }}' + drm: '{{ ansible_local.drm.drm }}' when: - xrandr is undefined - xorg is undefined + - drm is undefined # TODO: expand template for xorg.conf (or snippets) # with respect for the available graphics card driver