TerryHowe / ansible-modules-hashivault

Ansible module for Hashicorp Vault.
https://pypi.python.org/pypi/ansible-modules-hashivault
MIT License
454 stars 158 forks source link

add a hashivault_token_role_list module #408

Closed Agalin closed 2 years ago

Agalin commented 2 years ago

This module lists roles configured in a specified token auth engine.

This module supports check mode (even though it does not perform any write operations) to ensure a whole playbook can run in check mode and proper data is still returned from this module for further tasks to use.

The code in this commit has been formatted with black.

Agalin commented 2 years ago

hvac raises an InvalidPath exception when no roles exist (but mount point is correct) with empty errors and None custom message. I believe it may be a bug in their implementation but added a workaround for that.

TerryHowe commented 2 years ago

Thanks!