Abort playbook if host is not ready

30 views
Skip to first unread message

Laci

unread,
May 28, 2020, 1:52:37 PM5/28/20
to Ansible Project
Is there a good way to abort the playbook if host is not ready?
For example I want to run a playbook against thisserver, but thisserver is unreachable by ssh or it is reachable but there is no python install. If any of these occurs I'd like to playbook to abort and stop processing tasks

Kai Stian Olstad

unread,
Jun 15, 2020, 2:07:00 AM6/15/20
to ansible...@googlegroups.com
On Thu, May 28, 2020 at 10:52:37AM -0700, Laci wrote:
> Is there a good way to abort the playbook if host is not ready?
> For example I want to run a playbook against *thisserver*, but *thisserver* is
> unreachable by ssh or it is reachable but there is no python install. If
> any of these occurs I'd like to playbook to abort and stop processing tasks

https://docs.ansible.com/ansible/latest/user_guide/playbooks_error_handling.html#aborting-the-play

--
Kai Stian Olstad
Message has been deleted

Laci

unread,
Jun 15, 2020, 7:16:40 AM6/15/20
to Ansible Project
Thank you!
Reply all
Reply to author
Forward
0 new messages