From 980104d3cb1fa96ee58d58b5bfc494c7126d17a3 Mon Sep 17 00:00:00 2001 From: goldyfruit Date: Thu, 1 Aug 2024 18:48:16 -0400 Subject: [PATCH] [ansible/video] Better env variable reading --- ansible/roles/ovos_installer/tasks/video.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ansible/roles/ovos_installer/tasks/video.yml b/ansible/roles/ovos_installer/tasks/video.yml index 71562b1..ad8e504 100644 --- a/ansible/roles/ovos_installer/tasks/video.yml +++ b/ansible/roles/ovos_installer/tasks/video.yml @@ -29,8 +29,10 @@ - name: Retrieve WAYLAND_DISPLAY variable become: true become_user: "{{ ovos_installer_user }}" - ansible.builtin.command: - cmd: echo $WAYLAND_DISPLAY + ansible.builtin.shell: + cmd: | + env | awk -F"=" '$1 = /WAYLAND_DISPLAY/ { print $2 }' + executable: /bin/bash register: _ovos_wayland_display changed_when: false