semaphore icon indicating copy to clipboard operation
semaphore copied to clipboard

Add full command being run to beginning of Result Window

Open jrglynn2 opened this issue 1 year ago • 0 comments

Requesting an enhancement to have the full Ansible command being run added to the top of the Results Window.

This should include any additional command line options that are added, such as Debug (--vvvv), Dryn Run (--check), Diff (--diff), or any that can be added through the Advanced CLI Args JSON Array.

I think it is beneficial because it makes it easy to understand what was exactly run. Currently you can know what was run because of the Task template used, but you have no concept of the arguments used. So in cases where you feed extra arguments of "Hosts Used" (servers to run against), you cannot see that in the output screen.

So for an example, a recent task of mine, the ansible command would have been restart-services.yml -e '{"hosts_used":"SERVER-NAME"}'. In looking at the Task output window, I wouldn't know that those arguments were used in that way.

I believe if you always use Debug (--vvvv), this is kind of done because you can see the "extra_vars" ... but i wouldn't want to use Debug every time. So I think just just a one-liner at the top, every time, showing the whole command, would be great.

Thanks!

jrglynn2 avatar Jun 02 '23 14:06 jrglynn2