# Accessing "Step" option from the Ansible API 2.0

**URL:** <https://forum.ansible.com/t/accessing-step-option-from-the-ansible-api-2-0/22979>\
**Category:** Ansible Developer\
**Created:** [November 8, 2016, 5:14am UTC](https://forum.ansible.com/t/accessing-step-option-from-the-ansible-api-2-0/22979 "2016-11-08T05:14:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Evelio\_VILA](https://avatars.discourse-cdn.com/v4/letter/e/f19dbf/32.png) [@Evelio\_VILA](https://forum.ansible.com/u/Evelio_VILA)\
**Post date:** [November 8, 2016, 5:14am UTC](https://forum.ansible.com/t/accessing-step-option-from-the-ansible-api-2-0/22979/1 "2016-11-08T05:14:24Z")

</div>

Hello list!

Using the Ansible API 2.x what would be the easiest way to pass the “–step” option to the PlaybookExecutor call?

eg from:

PlaybookExecutor(playbooks=playbooks, inventory=inventory,  
variable\_manager=variable\_manager, loader=loader,  
options=options, passwords=passwords)

I’m using Ansible 2.2.0.

Thanks  
Evelio

---

<div class="post-metadata">

**Author:** ![Evelio\_VILA](https://avatars.discourse-cdn.com/v4/letter/e/f19dbf/32.png) [@Evelio\_VILA](https://forum.ansible.com/u/Evelio_VILA)\
**Post date:** [November 8, 2016, 6:14am UTC](https://forum.ansible.com/t/accessing-step-option-from-the-ansible-api-2-0/22979/2 "2016-11-08T06:14:40Z")

</div>

So apparently the way to achieve this is via a Strategy plugin.

eg [https://github.com/ansible/ansible/blob/9694d60af5e9cde7aa684e9795b79f9fbb928ce5/lib/ansible/plugins/strategy/debug.py](https://github.com/ansible/ansible/blob/9694d60af5e9cde7aa684e9795b79f9fbb928ce5/lib/ansible/plugins/strategy/debug.py)

What’s the best way to associate that plugin type with the PlaybookExecutor object?
