--- - hosts: all tasks: - name: 1st command shell: "false" - name: 2nd command shell: echo a % ansible-playbook test.yml --connection=local -i a, PLAY [all] ******************************************************************** GATHERING FACTS *************************************************************** ok: [a] TASK: [1st command] *********************************************************** failed
![ansibleでFaildを回避する - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/cbc1f0f7d57c0fbd7dc87d81bc07542c36a83eff/height=288;version=1;width=512/https%3A%2F%2Fcdn.qiita.com%2Fassets%2Fqiita-fb-2887e7b4aad86fd8c25cea84846f2236.png)