Correct way of license file management in Ansible?

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:

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