Replies: 5 comments 5 replies
-
The tough thing if I remember my early years of Ansible, I didn't know enough to run with any v's. So I'm not sure that will help. If the problem is with the issues being opened on GH about it not being idempotent, then I think this should be addressed with GH not within Ansible itself. MyVote: 4 Ideally I would like to see the |
Beta Was this translation helpful? Give feedback.
-
Tagging a few more people involved in the Twitter discussion and others that may have some interest. @nickrusso42518 @ktbyers @itdependsnetworks @dgarros |
Beta Was this translation helpful? Give feedback.
-
Option 4 sounds cool but seems difficult to implement, and I'm almost certain some false negatives would still make it past whatever logic is added. Since the raising of issues requires I dislike the idea of printing a warning if diff exists because a legitimate, correctly-implemented change will raise the warning. This will raise more questions than it answers and cause engineers to second-guess their work. This is what happened to me and how this whole discussion started. |
Beta Was this translation helpful? Give feedback.
-
1-3 seems viable. I am not sure how 4 would work though. |
Beta Was this translation helpful? Give feedback.
-
There is a known issue for verbose logging from module side ansible-collections/ansible.netcommon#224 Hence the PR ansible-collections/ansible.netcommon#225 moves the warning message in the |
Beta Was this translation helpful? Give feedback.
-
In the Jan-2021 release of
ansible.netcommon
collection and a couple of platform collections, the<platform>_config
andcli_config
modules started showing a warning to users to indicate the config diff and idempotent behaviour of the module as below.The warning is currently displayed on every task run even if there is no config diff, while this behaviour might be helpful to new users of the module it might be noise for users who already understand how the module works.
To better handle the warning message and inform the users about the module behaviour couple of options were suggested on this thread which I have summarized below:
Add a configurable option to enable helpful warning and tips for new users. By default, the value is set to
False
Add warning only if diff exists.
Add the warning message only if the verbose flag is added while running the playbook
-vvvv
(3v's) and above.Add logic to into GitHub Actions to diagnose and provide the guidance there if it is about issues coming into GH
Remove console warning completely as it might raise more questions
Add warning in the task response as the value of
warning
key if diff existsPlease suggest which option is more suitable to handle the warning message in a better way. Any better ideas apart from the one not listed above are also welcomed :-)
Beta Was this translation helpful? Give feedback.
All reactions