Add support for fully qualified collection name in become_method#1072
Add support for fully qualified collection name in become_method#1072jadacyrus wants to merge 1 commit into
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
|
|
Thanks for looking at it @moreati, I doubt I'd have time to help with a larger change but it's nice knowing the next steps in case I ever do get a chance, and I appreciate the time spent investigating. |
| 'ansible.builtin.su': _connect_su, | ||
| 'sudo': _connect_sudo, | ||
| 'ansible.builtin.sudo': _connect_sudo, | ||
| 'doas': _connect_doas, |
There was a problem hiding this comment.
Hi. Why is this not added for community.general.doas also? I myself ran into this bug with doas.
According to ansible-lint the correct value for
become_methodsuandsudoare the fully qualified namesansible.builtin.suandansible.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: