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
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
ok it was simply the order, this works:
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.
when: "'does not exist' in volume_info.stderr and
ansible_eth0.ipv4.address == server_list.0"
^ yamlism, if it starts by quote it must end by quote
Yes i tried that it didnt work