Hello,

I'm trying to get a role to run on all hosts except the last.  I thought 
this would work:

- { role: wait, timeout: 300, tags: ['wait'], when: inventory_hostname != 
> play_hosts[-1] }


...but I get a YAML syntax error.

Is there a way to do this?

Best,

- C

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1d814358-87ac-4591-9d83-6372eae20158%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to