# Correct way of license file management in Ansible?

**URL:** <https://forum.ansible.com/t/correct-way-of-license-file-management-in-ansible/15949>\
**Category:** Ansible Project\
**Created:** [August 14, 2014, 9:03pm UTC](https://forum.ansible.com/t/correct-way-of-license-file-management-in-ansible/15949 "2014-08-14T21:03:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincent\_Hardion](https://avatars.discourse-cdn.com/v4/letter/v/da6949/32.png) [@Vincent\_Hardion](https://forum.ansible.com/u/Vincent_Hardion)\
**Post date:** [August 14, 2014, 9:03pm UTC](https://forum.ansible.com/t/correct-way-of-license-file-management-in-ansible/15949/1 "2014-08-14T21:03:16Z")

</div>

Hi,

I want to manage the license file (the license key of proprietary software) within Ansible for each host.

There is few resource on the web on this subject or maybe I use the wrong vocabulary.

So can someone tell me if there is a better ansible way to handle this case.  
Here is what is working at this moment:

\*roles/license/tasks/main.yml:

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [August 16, 2014, 2:28pm UTC](https://forum.ansible.com/t/correct-way-of-license-file-management-in-ansible/15949/2 "2014-08-16T14:28:35Z")

</div>

This looks like an _excellent_ way to do it if they are going to vary by host.
