- name: install it
become: True
register: command_result
shell:
./my_install
chdir=/tmp/setup
failed_when:
- "'already installed' not in command_result.stdout"
- "command_result.rc != 0"
fails with the following message:
The field 'failed_when' is supposed to be a string type, however the
> incoming data structure is
> a <class 'ansible.parsing.yaml.objects.AnsibleSequence'>
>
In ansible 1.8 this playbook worked. Is there a new feature which replaced
the list in ``failed_when``?
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/8e231cbd-2f6b-4620-9f3f-300ac986d04f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.