# how to re-use a role in a single playbook?

**URL:** <https://forum.ansible.com/t/how-to-re-use-a-role-in-a-single-playbook/27472>\
**Category:** Ansible Project\
**Created:** [May 7, 2018, 12:19pm UTC](https://forum.ansible.com/t/how-to-re-use-a-role-in-a-single-playbook/27472 "2018-05-07T12:19:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karl\_Auer](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Post date:** [May 7, 2018, 12:19pm UTC](https://forum.ansible.com/t/how-to-re-use-a-role-in-a-single-playbook/27472/1 "2018-05-07T12:19:37Z")

</div>

I have a very simple role called “make\_vpc” that creates an EC2 VPC. It takes as inputs three variables: region, vpc\_name and vpc\_cidr\_block.

In my playbook I can just set those variables, call the role, and I get a VPC. It’s great!
