You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Launchpad user Alberto Contreras(aciba) wrote on 2023-04-04T12:34:45.688883+00:00
Thanks for reporting this.
It looks like the reason to not set self.run_user in the distro case is to be able to install Ansible as root (as a distro package), but the user should be set after the package is installed.
Launchpad user Chad Smith(chad.smith) wrote on 2023-04-05T21:34:25.685689+00:00
Thank you again for the bug. We may not get to this fix for a little bit. In the meantime, if this is a bug of interest to your use-cases and you'd like to contribute, we'd happily help guide new contributors to land fixes in upstream cloud-init so this is fixed sooner rather than later.
See contributing guidelines[1] and we can always answer questions in IRC if there are any obstacles with regard to getting setup.
This bug was originally filed in Launchpad as LP: #2013467
Launchpad details
Launchpad user Ondřej Caletka(ondrej-c) wrote on 2023-03-31T08:30:22.607403+00:00
When Ansible module is used with
install_method: distro
, the value of attributerun_user:
is ignored and the whole Ansible playbook runs as root.The problem lies somewhere around class AnsiblePullDistro which does not set
self.run_user
unlike class AnsiblePullPipThe text was updated successfully, but these errors were encountered: