I don’t know if it’s the best way to handle it because the user variable and password are exposed in the playbook.
I cannot understand how to compare the “server” console variable with the url key within each array and I also need to add a conditional in each task to run it if the url key matches the value of the “server” variable.
It’s “docker plugin install …” but never mind that. You’re changing the goal on us!
First, let’s address your original question, but using “my_selector” instead of “SERVER” as the variable name. It seems you misunderstood my answer, so I’ll spell it out completely. Then we’ll stick another task on the end that plays with the docker plugin install.