proxmox_template | changed http_verify_ssl to validate_certs
This commit is contained in:
parent
282393c27b
commit
af7463e46e
1 changed files with 4 additions and 4 deletions
|
@ -36,7 +36,7 @@ options:
|
||||||
- you can use PROXMOX_PASSWORD environment variable
|
- you can use PROXMOX_PASSWORD environment variable
|
||||||
default: null
|
default: null
|
||||||
required: false
|
required: false
|
||||||
https_verify_ssl:
|
validate_certs:
|
||||||
description:
|
description:
|
||||||
- enable / disable https certificate verification
|
- enable / disable https certificate verification
|
||||||
default: false
|
default: false
|
||||||
|
@ -162,7 +162,7 @@ def main():
|
||||||
api_host = dict(required=True),
|
api_host = dict(required=True),
|
||||||
api_user = dict(required=True),
|
api_user = dict(required=True),
|
||||||
api_password = dict(no_log=True),
|
api_password = dict(no_log=True),
|
||||||
https_verify_ssl = dict(type='bool', choices=BOOLEANS, default='no'),
|
validate_certs = dict(type='bool', choices=BOOLEANS, default='no'),
|
||||||
node = dict(),
|
node = dict(),
|
||||||
src = dict(),
|
src = dict(),
|
||||||
template = dict(),
|
template = dict(),
|
||||||
|
@ -181,7 +181,7 @@ def main():
|
||||||
api_user = module.params['api_user']
|
api_user = module.params['api_user']
|
||||||
api_host = module.params['api_host']
|
api_host = module.params['api_host']
|
||||||
api_password = module.params['api_password']
|
api_password = module.params['api_password']
|
||||||
https_verify_ssl = module.params['https_verify_ssl']
|
validate_certs = module.params['validate_certs']
|
||||||
node = module.params['node']
|
node = module.params['node']
|
||||||
storage = module.params['storage']
|
storage = module.params['storage']
|
||||||
timeout = module.params['timeout']
|
timeout = module.params['timeout']
|
||||||
|
@ -194,7 +194,7 @@ def main():
|
||||||
module.fail_json(msg='You should set api_password param or use PROXMOX_PASSWORD environment variable')
|
module.fail_json(msg='You should set api_password param or use PROXMOX_PASSWORD environment variable')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
proxmox = ProxmoxAPI(api_host, user=api_user, password=api_password, verify_ssl=https_verify_ssl)
|
proxmox = ProxmoxAPI(api_host, user=api_user, password=api_password, verify_ssl=validate_certs)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
module.fail_json(msg='authorization on proxmox cluster failed with exception: %s' % e)
|
module.fail_json(msg='authorization on proxmox cluster failed with exception: %s' % e)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue