community.general/changelogs/fragments/9659-lxd_connection-nonroot...

3 lines
230 B
YAML
Raw Normal View History

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 bb2ba14b8fde1639f1053fc0e0a52349b22deee3. * Update plugins/connection/lxd.py Co-authored-by: Felix Fontein <felix@fontein.de> * fix: omit uid, gid args in lxd file push if root --------- Co-authored-by: Felix Fontein <felix@fontein.de>
2025-02-15 12:00:14 +00:00
minor_changes:
- lxd connection plugin - adds ``remote_user`` and ``lxd_become_method`` parameters for allowing a non-root user to connect to an LXD instance (https://github.com/ansible-collections/community.general/pull/9659).