Skip to content

Commit

Permalink
[ansible/video] Better env variable reading
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Aug 1, 2024
1 parent dcdf44c commit 980104d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ansible/roles/ovos_installer/tasks/video.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 980104d

Please sign in to comment.