mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-05 21:54:22 -07:00
fix: use -c flag with su
This commit is contained in:
parent
297f3c0f9a
commit
fe0add095c
1 changed files with 1 additions and 1 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue