Open jarppiko opened 7 months ago
Files identified in the description:
lib/ansible/playbook/become.py
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
Files identified in the description:
lib/ansible/playbook/become.py
plugins/become/machinectl.py
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
cc @None click here for bot help
!component =plugins/become/machinectl.py
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
I get the same error also with the latest community.general 8.6.0. It also fails on:
I span out AWS instances to try it out on fresh installs. This is not Ubuntu related.
It seems this happens when running a playbook in localhost only. When running Ansible over SSH, become_method: machinectl works.
Summary
Any Ansible task fails if ran with
become:true
andbecome_method: machinectl
with error:I am running Ansible playbook locally on a Ubuntu 23.10 server as
root
. Otherwise Ansible works fine, but all tasks withbecome_method: machinectl
fail. Running the same command with defaultbecome_method
(sudo
) works fine. Also, if I set Ansible not to delete the temp files (export ANSIBLE_KEEP_REMOTE_FILES=1
) and manually run theEXEC
line printed out with-vvvv
option, the command performs just fine. I need to usemachinectl
since I am setting up rootless Podman pods with Ansible.Since the error message is not that informative, I am grateful for any debugging tips if not full solution.
UPDATE: it seems this happens when running a playbook in
localhost
only. When running Ansible over SSH,become_method: machinectl
works.Issue Type
Bug Report
Component Name
community.general.machinectl become
Ansible Version
Community.general Version
Configuration
OS / Environment
Ubuntu 23.10 Mantic
Steps to Reproduce
Expected Results
I expect
become_method: machinectl
to work normally and execute tasks.Actual Results
Code of Conduct