1 2 3 4 5 6 7 8 9
- hosts: localhost tasks: - command: echo 123 ignore_errors: true - command: echo 123 vars: should_ignore_errors: true ignore_errors: "{{ should_ignore_errors }}"