5 - name: execute swFallback operation
\r
6 shell: ./swm/swFallback --filter {{filter}}
\r
8 register: fallback_result
\r
10 - name: write output to file
\r
11 local_action: copy content="{{fallback_result.stdout}}" dest="{{inventory_dir}}/{{inventory_hostname}}_results.txt"
\r
12 when: fallback_result.stdout != ""
\r
14 - name: use result of swFallback as the result of Playbook
\r
16 msg: "{{fallback_result.stderr}}"
\r
17 when: fallback_result is failed
\r