DEV Community

Roy
Roy

Posted on

Ansible: Further plays are not executing if task in one play failed when multiple plays in a playbook

I have a playbook with multiple plays as below,

- name: play1
  hosts: host1
  tasks
  - command: dgfdgd
- name: play2
  hosts: host2
  tasks:
  - command: ls

the output I'm getting as below,

PLAY [play1] *****************************************************************************************

TASK [Gathering Facts] *******************************************************************************
ok: [10.15.23.76]

TASK [command] ***************************************************************************************
fatal: [10.15.23.76]: FAILED! => {"changed":

I run into the same problems

Top comments (0)