Ansible - Wacom Tablet

18 views
Skip to first unread message

J Driz

unread,
Feb 14, 2020, 12:55:13 PM2/14/20
to Ansible Project
Hi,

Im trying to turn off a wacom tablet's touch:

---

- hosts: computer

  tasks:

     - name: turn wacom touch off
       shell:  xsetwacom --set "Wacom Intuos5 touch M Finger touch" TOUCH off
       become: yes


But i keep getting this error.

PLAY [computer] **************************************************************************************************************

TASK [Gathering Facts] ***********************************************************************************************************************
ok: [computer]

TASK [turn wacom touch off] ******************************************************************************************************************
fatal: [computer]: FAILED! => {"changed": true, "cmd": "xsetwacom --set \"Wacom Intuos5 touch M Finger touch\" TOUCH off", "delta": "0:00:00.003890", "end": "2020-02-14 12:30:53.170948", "msg": "non-zero return code", "rc": 255, "start": "2020-02-14 12:30:53.167058", "stderr": "Failed to open Display .", "stderr_lines": ["Failed to open Display ."], "stdout": "", "stdout_lines": []}

PLAY RECAP ***********************************************************************************************************************************
computer   : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0


Is there a way to make this happen? 

Thanks

Dick Visser

unread,
Feb 14, 2020, 5:06:51 PM2/14/20
to ansible...@googlegroups.com
It looks like you’re trying to execute a command that requires a running x server?

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a25faaed-fdcb-4719-9398-c28b5257740a%40googlegroups.com.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.
Reply all
Reply to author
Forward
0 new messages