# Creating a playbook that installs a role - best practice

**URL:** <https://forum.ansible.com/t/creating-a-playbook-that-installs-a-role-best-practice/24874>\
**Category:** Ansible Project\
**Created:** [July 2, 2017, 2:31pm UTC](https://forum.ansible.com/t/creating-a-playbook-that-installs-a-role-best-practice/24874 "2017-07-02T14:31:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Listing](https://avatars.discourse-cdn.com/v4/letter/l/3d9bf3/32.png) [@Listing](https://forum.ansible.com/u/Listing)\
**Post date:** [July 2, 2017, 2:31pm UTC](https://forum.ansible.com/t/creating-a-playbook-that-installs-a-role-best-practice/24874/1 "2017-07-02T14:31:48Z")

</div>

Hi guys,

I am looking for the best way to automatically install a role from a source. I am currently using these two ways:

1. via requirements.yml file

`
