Add _sudo_set_home=True
global argument to disable setting sudo home
#1205
Labels
connectors
Connector issues - builtin integrations with other tools.
Is your feature request related to a problem? Please describe
Discussed in #1204
Originally posted by DrSensor September 14, 2024
Hi, how to disable
-H
/--set-home
flag when using_sudo=True
?a bit of context
after some inspection with
pyinfra --debug inventory.py deploy.py
I notice it use
-H
Describe the solution you'd like
I propose to add global argument
_sudo_always_set_home
1 where the default isTrue
(for backward compatibility)with this change, the group_data would be
Footnotes
/etc/sudoers
has an option calledalways_set_home
↩The text was updated successfully, but these errors were encountered: