mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-17 06:11:30 +00:00
fix: use -c flag with su
This commit is contained in:
@@ -123,7 +123,7 @@ class Connection(ConnectionBase):
|
||||
host=self._host(),
|
||||
)
|
||||
exec_cmd.extend(
|
||||
[self.get_option("lxd_become_method"), self.get_option("remote_user")]
|
||||
[self.get_option("lxd_become_method"), self.get_option("remote_user"), "-c"]
|
||||
)
|
||||
|
||||
exec_cmd.extend([self.get_option("executable"), "-c", cmd])
|
||||
|
||||
Reference in New Issue
Block a user