F5Networks / f5-ansible

Imperative Ansible modules for F5 BIG-IP products
GNU General Public License v3.0
375 stars 229 forks source link

Module to revoke a license #602

Closed payalsin closed 5 years ago

payalsin commented 6 years ago

There is a new feature is 13.1 to revoke a license through the BIG-IP itself as long as the license is BYOL. From tmsh, to revoke the license, run the command tmsh revoke sys license.

For more details: https://support.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/bigip-ve-setup-vmware-esxi-13-1-0/4.html#guid-d529e0e1-b37c-4e83-a970-fa68b266a6c7

It would be great to have an ansible module to revoke the license. This will come handy in automating end-to-end workflows from spinning up to tearing down a BIG-IP VE and then the end user being able to re-use the same license for the next spin up cycle.

chen23 commented 6 years ago

Requires SDK support https://github.com/F5Networks/f5-common-python/issues/1357

ArtiomL commented 6 years ago

For now, we could potentially use the bigip_command module to execute that tmsh command from a playbook.

caphrim007 commented 6 years ago

f5-sdk support has been added afaik

caphrim007 commented 6 years ago

@payalsin @ArtiomL @chen23 this module would not work with closed-circuit networks; situations where the BIGIP is not connected to the public network. Unless you know differently

chen23 commented 6 years ago

That is probably true. Not sure there is a sane way to test whether the device can connect to the license server before trying to issue the command.

caphrim007 commented 6 years ago

@chen23 upon further investigation, my earlier statement may not be entirely true...