License Perplexity


#1

I’ve been wondering what license should the code written in any Free/Libre software be released under ?

For instance
If i write an Ansible-Playbook to deploy Mysql onto a server, shouldn’t it be released under the GNU General Public License as Ansible is released under GNU GPL or is it okay to use other free software licenses.

Need Help in better understanding the Free Software Licenses out there.