feat(module): some more on vault init

This commit is contained in:
Bertrand Lanson 2023-12-27 20:30:39 +01:00
parent 779e6e3864
commit 23d2a44d50

View File

@ -83,9 +83,7 @@ def run_module():
module_args = dict(
api_url=dict(type='str', required=True),
key_shares=dict(type='int', required=False,default=5),
key_treshold=dict(type='int',required=False,default=3),
name=dict(type='str', required=True),
new=dict(type='bool', required=False, default=False)
key_treshold=dict(type='int',required=False,default=3)
)
# seed the result dict in the object
@ -108,6 +106,13 @@ def run_module():
supports_check_mode=True
)
if not HAS_HVAC:
module.fail_json(
msg=missing_required_lib('hvac'),
exception=HVAC_IMPORT_ERROR
)
# if the user is working with this module in only check mode we do not
# want to make any changes to the environment, just return the current
# state with no modifications