Between my lack of Ansible mastery and its kind of syntax, rare is the day I don’t get stuck…
Either the syntax is not intuitive or I have no intuition.
I am trying to do something very simple and it seems very complicated in Ansible. I hope it just seems so.
I figure out what release to deploy in a play and then confirm the release is correct, if not all stops, if correct run with the wind…
So:
If I put vars_prompt between the tasks it gives an error. Where can the prompt go then? When is code position indicative of order of execution and when not?
vars_prompt goes on the play level, not the task level. It's not a
task and you don't have control over when the prompt happens. It will
ask you before the play starts to answer any questions in the prompt.
I could be wrong, but from my understanding the pause module won't
take input. It will give a prompt, but that just waits for enter to be
pressed right?