To be fair, the condition is evaluated on only one server: the Ansible 
controller. The task is skipped for other hosts in scope for that play.

And you did specifically ask for the task.

Alternatively, you could end the play, and in the same file start a new 
play that is scoped via "hosts:" to just the host group(s) you're 
interested in, and put your task inside that play. That will eliminate the 
messages about the skipped hosts, because there are none.

On Thursday, January 26, 2023 at 2:03:35 PM UTC-5 ema...@gmail.com wrote:

> For some reason you are evaluating the condition in all servers, shouldn’t 
> you do it in one server?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/293520ed-77ab-42ee-a17a-0af8c56a2489n%40googlegroups.com.

Reply via email to