mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-06 02:30:32 -07:00
lxd_connection: Allow non-root users to connect to an instance (#9659) * fix: add support for non-root user * fix: show correct info for connection * fix: use build_exec_command to execute as nonroot * unset default user * feat: add options for setting remote user and become method * fix: add root as default remote_user * fix: remove ansible_ssh_user from remote_user vars * fix: use single quotes inside f-string * fix: ensure lxc exec comes first * fix: line length * fix: use -c flag with su * Update plugins/connection/lxd.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/connection/lxd.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/connection/lxd.py Co-authored-by: Felix Fontein <felix@fontein.de> * doc: add changelog fragment * fix: use underscore for module name in fragment * Update 9659-lxd_connection-nonroot-user.yml Co-authored-by: Felix Fontein <felix@fontein.de> * fix: add put command * feat: add get_remote_uid_gid placeholder function * feat: complete placeholder _get_remote_uid_gid function * fix: better logging * fix: ensure default values are of type str * fix: use ints for uid and gid * fix: print put command * fix: format * fix: display msg for PUT * fix: add comment about defaults * fix: format * fix: use os module to get uid and gid * Revert "fix: use os module to get uid and gid" This reverts commit |
||
---|---|---|
.. | ||
fragments | ||
.gitignore | ||
changelog.yaml | ||
changelog.yaml.license | ||
config.yaml |