Closed marwin1991 closed 1 week ago
The changed
value is a given for a module and it being true means that the module did an action, in this case a copy occurred. We don't typically report on the common return values like changed
because all modules have them and it means the same thing. Was there something else you thought changed: true
meant in the return value?
@jborean93 I am new to ansible, so during creating some basic script with 'when:' condition I was researching dosc, using AI, but cloud not find anything. I was using some crazy contributions with backup_files variable, but then I decide to debug the output and I saw 'changed' property, and I thought maybe some else is struggling with it. Also AI having better docs could provide solution? I don't know, it's your decision, IMO giving as much info as we can simplifies usage of things :)
changed
is just one of those things always there, if a module reported a change then it did what it was meant to do. I don't like to discount the work you've done to open the PR to try and improve the docs but in this case I might have to sorry. I do very much appreciate you contributing back and trying to improve the docs though.
Also just an FYI here is a doc on common return values from modules https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html.
@jborean93 you are right, sorry for wasting your time and thank you for understanding and patience :)
sorry for wasting your time
Definitely didn't waste my time, always good to see contributions. I'm just sorry it wasn't something we are looking to merge.
SUMMARY
Added information about flag
changed
for win_copyISSUE TYPE
COMPONENT NAME
win_copy
ADDITIONAL INFORMATION