-
Notifications
You must be signed in to change notification settings - Fork 199
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
Add support for fully qualified collection name in become_method #1072
base: master
Are you sure you want to change the base?
Conversation
c473514
to
22c3202
Compare
@moreati Anything specifically you want for this? |
I also ran into this issue, is it possible to merge this or is something else needed? It's pretty small so just curious if it's a problem with the MR or just lack of time. If there's anything that can be done to help move it forward I may be able to contribute depending on what is needed. Thanks! |
@moreati Bump. |
@moreati very simple change here to fix issue. do you need anything else? |
Sorry for the wait. You need
Optional
|
e5d3be6
to
b316e74
Compare
b316e74
to
c481965
Compare
I am not sure why some of these tests are failing with |
I'll take a look, thanks
…On Tue, 28 Jan 2025 at 18:22, Alexander ***@***.***> wrote:
I am not sure why some of these tests are failing with su ...
—
Reply to this email directly, view it on GitHub
<#1072 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABKS4XMUIY32LJBFRBSUND2M7DGHAVCNFSM6AAAAABSPLFDBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJZG42DSNJQGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
After some investigation in #1233 I don't know why the su test is failing and I think I've found a second problem. So far FQCN su is not supply the password in some Ansible versions, e.g. c481965 in https://github.com/mitogen-hq/mitogen/actions/runs/13016396756/job/36306555275?pr=1072
FQCN sudo appears to be reusing an old connection, even if a subsquent task specifies a different
|
For now my conclusion is that this will require more fundamental changes to ansible_mitogen. Possibly
|
According to ansible-lint the correct value for
become_method
su
andsudo
are the fully qualified namesansible.builtin.su
andansible.builtin.sudo
(https://github.com/ansible/ansible-lint/blob/main/src/ansiblelint/schemas/ansible.json#L48)Making the switch to these fully qualified names while using the Mitogen connection strategy produces the following error :
Here is an example playbook that will reproduce the bug: