Re: [ansible-project] How to control `ignore_errors` with a variable

2017-11-03 Thread Brian Coca
sorry, im being stupid here ( thanks Toshio for bringing me to my senses). I write "false" but keep reading True You are correct, the expression is being incorrectly evaluated, Ill reopen the ticket. On Nov 3, 2017 08:33, "Brian Coca" wrote: that is exactly what should

Re: [ansible-project] How to control `ignore_errors` with a variable

2017-11-03 Thread Brian Coca
that is exactly what should happen, im not sure what you are expecting. -- Brian Coca -- 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

Re: [ansible-project] How to control `ignore_errors` with a variable

2017-11-03 Thread guenhter
HI, no, this doesn't work. You see in you output ...ignoring This means, that the errors are ignored. Also the PLAY RECAP shows, that everything is ok, and no tasks failed. If you add another task after the one already contained, it is still executed, but this should no happen... On Friday,

Re: [ansible-project] How to control `ignore_errors` with a variable

2017-11-02 Thread Brian Coca
It works for me, using this play: - hosts: localhost gather_facts: false vars: ignore: false tasks: - name: with var assert: that: - item < 2 ignore_errors: '{{ignore|bool}}' with_items: [1,2,3] I get the following output (note the 'ignoring' at the end:

[ansible-project] How to control `ignore_errors` with a variable

2017-11-02 Thread guenhter
Hi, I already opened an issue for my question but I was advised to come here first. The detailed description is available under https://github.com/ansible/ansible/issues/32384 To sum it up: I cannot manage to make the `ignore_errors` work with a variable. When I use a hardcoded boolean it