kharandziuk
kharandziuk

Reputation: 12890

Ansible: run a failed task

I'm writing a playbook. My workflow looks like this:

If the playbook is long enough it takes a lot of time rerun a playbook. Is there a way to run only the last(failed) task? or Can you propose the other way how to speed a process of playbook creation?

Upvotes: 7

Views: 839

Answers (1)

Vor
Vor

Reputation: 35109

You may use --start-at-task parameter of ansible-playbook

--start-at-task=START_AT
      start the playbook at the task matching this name

Another option is to use --step parameter that allows you to step through the playbook and decide what to run.

Upvotes: 10

Related Questions