# adding roles at run time and include\_role

**URL:** <https://forum.ansible.com/t/adding-roles-at-run-time-and-include-role/23059>\
**Category:** Ansible Project\
**Created:** [November 20, 2016, 7:36pm UTC](https://forum.ansible.com/t/adding-roles-at-run-time-and-include-role/23059 "2016-11-20T19:36:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spike1](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@Spike1](https://forum.ansible.com/u/Spike1)\
**Post date:** [November 20, 2016, 7:36pm UTC](https://forum.ansible.com/t/adding-roles-at-run-time-and-include-role/23059/1 "2016-11-20T19:36:58Z")

</div>

Hi there,

first post here so just a quick thank you to everybody who has contributed to ansible, it’a fantastic piece of software.

I’m trying to specify hosts and roles at run time from cli while using a template playbook like this:

# ideal playbook
