Create a role or playbook that will be always use to check if the credentials of the cloud provider are valid ( not expired)

We need this task, before to deploy,start,stop,decommission and instance on any cloud provider. Because otherwise the playbook will fail because the credentials are no longer valide