How can you failed_whenbased on stdoutthe async Ansible task? I tried the options:
- name: Run command
command: arbitrary_command
async: 3600
poll: 10
register: result
failed_when: "Finished 'command'" in result.stdout
It leads to:
fatal: [localhost] => error while evaluating conditional: "Finished 'command'" in result.stdout
source
share