When writing and debugging Ansible playbooks, typical workflow is as follows:
ansible-playbook ./main.yaml
Future Future readers:
As of Ansible 2.4.2.0 --start-at-task
works for tasks defined in roles I created.
The ansible team is not willing to address this issue they suggest you keep your roles idempotent and replay the entire play, I don't have time for this. In my roles I am not using a massive amount of facts like @JeremyWhiting, so for me I can use this --start-at-task
feature.
Still however, this is a manual task so instead I wrote some ansible rpm and added a "Resume" feature that follows these basic steps:
The ansible team is unwilling to create this basic (and very useful) feature so the only choice is to hack it together via some bash scripts.