- 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"
The field 'failed_when' is supposed to be a string type, however the incoming data structure is
a <class 'ansible.parsing.yaml.objects.AnsibleSequence'>