You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The [gnupg : Enable gpg-agent.socket] task works well under sudo ansible-playbook -i localhost playbook.yml and fails if I run it under su (e.g. as root)
TASK [gnupg : Enable gpg-agent.socket] ***************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "cmd": "/usr/bin/systemctl --user", "msg": "Failed to connect to bus: Operation not permitted", "rc": 1, "stderr": "Failed t
o connect to bus: Operation not permitted\n", "stderr_lines": ["Failed to connect to bus: Operation not permitted"], "stdout": "", "stdout_lines": []}
The
[gnupg : Enable gpg-agent.socket]
task works well undersudo ansible-playbook -i localhost playbook.yml
and fails if I run it undersu
(e.g. as root)Task code is:
The text was updated successfully, but these errors were encountered: