-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
alternatives: should always change the link from auto to manual mode - never ported over to community.general #6756
Comments
Files identified in the description: If these files are incorrect, please update the |
Hi @life5ign thanks for your ticket (again). A couple of comments:
|
Hello @russoz , thanks for the reply; the way I see it: if I'm selecting path for the command, it implies that it's manual, so it's contradictory for it to remain in auto mode, subject to change by the system; if I declare I want a state, ansible should ensure that the the system can't just change it to something else. from
This is why I consider it a bug that when I, as the admin, am specifying a certain file (the program) to be referred to by a name, ansible doesn't make this happen fully, in that it lets that name remain open to be changed to point to a different file, upon an upgrade, e.g. If I were setting this on the CLI, namely pointing a name to a given file, it would be set in manual mode; it would not be automatic at that point. |
Exactly my point: that is your understanding. I am not a regular user of The fact that the module author(s) thought of the auto/manual setting and did not decide to turn the link groups automatically into manual tells me that there was a different set of expectations to them.
I might be splitting hairs here, but assuming the wording is accurate and that the devil is int he details, I need to ask: by linking a group to one specific target (that might or might not be the same already in place), does that change "the system's automatic settings"? The sentence from the manual does not (update: I missed the negation the first time around) seem to necessarily indicate that updating the links should turn the group manual.
We have two different states related to a link group: the target of the link(s) and the mode. Maybe what the module is missing is a parameter |
@russoz ok, thank you for explaining that my thoughts and beliefs are mine, that wasn't clear before. But we are on github, and I'm just an ansible user who is trying to be helpful to the community by copying this (call it whatever you want, I actually don't really care what it's called) over from a stale thread that I encountered. I don't have the time to go much into this, but it seems that you might? I read the first and last sentences of your post, and I do think |
Not sure when I would be able to work on that, but this ticket clearly needs to be in the backlog. |
Have you tried |
Hmm, I see you mentioned In any case, if |
I'm turning off email notifications for this thread due to the extra attitude and rudeness brought to the table by the last two users who responded. Hopefully the ansible team can make up for this with more friendly people somehow. So no, I won't be seeing any replies below. |
I'm sorry that you perceive our comments as rude. We try to triage issues to figure out what are actually bugs, what are wishes/feature requests, and what are user support questions. As the discussion in this issue shows this isn't usually so clear. |
Apologies for giving you that impression, it was never the intention. That being said, as Felix has put it, we usually try to focus on the technical issue. As to the issue at hand, I am glad we agreed on a way to move forward, despite your reservations with the language. And I meant what I wrote that this must be in the collection's backlog. Personally, I have been working on different modules lately and I cannot spare more bandwidth to add another one t this time, but hopefully will be able to do so in a not so distant future. |
The param |
Or the PR #4557 |
Actually, that |
Heey, |
The problem is that If, later in my play, another package which provides the same alternative (with a higher priority) is installed it will then become selected (still on auto). Running the same play a second time results in This breaks idempotency. Either a user will rely on the |
Summary
This issue never got ported over, as far as I can tell; I can confirm that the alternatives module still doesn't set the mode to "manual, at least not when the alternative was already set to the correct path"
Please see original issue, as well as my new writeup, in which I confirm the issue is still present.
ansible/ansible#66598
Issue Type
Bug Report
Component Name
alternatives
Ansible Version
Community.general Version
and, I'm using the updated version 7.1.0, which I just updated
Configuration
OS / Environment
Ubuntu 22.04 LTS
Steps to Reproduce
Expected Results
I expect the mode to be "manual" on the server
Actual Results
but it is still "auto":
Code of Conduct
The text was updated successfully, but these errors were encountered: