community.general/plugins
Peter Siegel 06df717bc6
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 bb2ba14b8f.

* 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 13:00:14 +01:00
..
action action/become/cache/callback: adjust import __future__ for Python3 (#9583) 2025-01-20 19:36:21 +01:00
become action/become/cache/callback: adjust import __future__ for Python3 (#9583) 2025-01-20 19:36:21 +01:00
cache action/become/cache/callback: adjust import __future__ for Python3 (#9583) 2025-01-20 19:36:21 +01:00
callback action/become/cache/callback: adjust import __future__ for Python3 (#9583) 2025-01-20 19:36:21 +01:00
connection lxd_connection: Allow non-root users to connect to an instance (#9659) 2025-02-15 13:00:14 +01:00
doc_fragments Keycloak modules retry request on authentication error, support refresh token parameter (#9494) 2025-01-26 15:23:39 +01:00
filter add json_patch, json_patch_recipe and json_diff filters (#9565) 2025-01-21 20:51:21 +01:00
inventory Implement #9650 Add parameter hooks to inventory plugin iocage (#9651) 2025-02-11 18:05:27 +01:00
lookup onepassword_doc: fix 1Password Connect support (#9625) 2025-02-10 21:54:51 +01:00
module_utils Add `FullPowerCycle` to Power commands (#9729) 2025-02-11 18:04:51 +01:00
modules profitbricks: deprecation (#9733) 2025-02-13 20:17:25 +01:00
plugin_utils plugins: replace to_native(), to_text(), str() with str() where possible or leave it away in f-string formatting (#9379) 2024-12-28 22:47:18 +01:00
test New Plugins #8594 (#8595) 2024-07-13 13:32:36 +02:00