--- - 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