when: ansible_eth0.ipv4.address == server_list.0 and 'does not exist' in volume_info.stderr
where this will not:
when: 'does not exist' in volume_info.stderr and ansible_eth0.ipv4.address == server_list.0
no matter in what kind of quotes you wrap it, escape it etc.
On Wednesday, May 17, 2017 at 4:32:56 PM UTC+10, Igor Cicimov wrote:
> > Any idea why would Ansible error on this? > > fatal: [localhost] => error while evaluating conditional: 'does not exist' > in volume_info.stderr and "10.99.4.236" == "10.99.3.195" > > FATAL: all hosts have already failed -- aborting >
-- To post to this group, send email to [EMAIL PROTECTED].