Quantcast
Channel: How do I run ansible on one host at a time and break on a failure - DevOps Stack Exchange
Viewing all articles
Browse latest Browse all 3

How do I run ansible on one host at a time and break on a failure

$
0
0

I've got an Ansible playbook where I want to update a number of flaky devices in sequence. I can use serial:1, but I want to stop the playbook altogether if I get a failure so I can fix it before proceeding instead of accumulating errors.

I'd also like to restart the playbook at the same host I stopped on. Currently using Ansible v2.0, but can also switch to a newer version if that sort of a feature is only available in newer versions.


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images