-
Notifications
You must be signed in to change notification settings - Fork 24k
become_method: machinectl results in IndentationError: unexpected indent #81254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
become_method: machinectl results in IndentationError: unexpected indent #81254
Comments
Files identified in the description: If these files are incorrect, please update the |
@Yannik It looks like you're using pipelining with a TTY over SSH, which isn't supported. Do you have a custom ssh configuration forcing the use of a TTY for the connection? |
Hi @mattclay, no, as far as I am aware, that is not the case. To make sure there is nothing weird going on, I have created a completely fresh ansible project with only the following files:
Here is the content of each file:
Additionally, I have confirmed that there is no special Here is the full output of
|
It looks like a TTY is being used after become completes:
Notice how Python is going into the REPL after the For further discussion you may want to open an issue in the |
Hi @mattclay, How can pipelining be disabled for a single task? |
...like this:
works fine! For me, this resolves the issue. Feel free to close this as you see fit. |
Summary
Using
become_method: machinectl
results in failure whenis configured.
Issue Type
Bug Report
Component Name
become
Ansible Version
Configuration
OS / Environment
Target OS: Debian bookworm
Steps to Reproduce
Task:
ansible.cfg
:Expected Results
The task should not fail
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: