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
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
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,
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:
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