Ansible when condition not working with with_sequence

Hi everyone,

I’ve been debugging some proof of concepts and got stuck with this.

Whenever I use the “when” condition in conjunction with “with_sequence”, the former won’t work.

Am I looking at a bug or is this behavior on purpose? Would you recommend a different approach?

Currently running ansible 1.7.2.

Thanks in advance,

Leo

I am facing a similar problem. Did you ever get this resolved?

Thanks,
Rami