jistr / ansible-gsetting

Ansible module for setting GSettings entries
Apache License 2.0
47 stars 18 forks source link

Module Fails on Ubuntu 20.04 Remote #13

Open chillymango opened 3 years ago

chillymango commented 3 years ago

Module fails when deploying to an Ubuntu 20.04 host.

Example Failure Message: Using module file <redacted>/gsetting.py raise CalledProcessError(retcode, cmd, output=output)\nsubprocess.CalledProcessError: Command '['grep', '-z', '^DBUS_SESSION_BUS_ADDRESS', '/proc/2153\\n2257\\n2276/environ']' returned non-zero exit status 2\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1 }

Upon closer examination of the running processes on Ubuntu 20.04, I found that there are three PIDs that match gnome-session and so the path gets mangled.

jistr commented 3 years ago

We probably need to use the solution from ansible-dconf: https://github.com/jistr/ansible-gsetting/commit/83ebc0bf30a611fb12ad73e2d443bdc1c463b0bb