The full traceback is: File “/tmp/ansible_VIZB5a/ansible_module_uri.py”, line 471, in main uresp[‘location’] = absolute_location(url, uresp[‘location’])
fatal: [192.168.50.164]: FAILED! => { “cache_control”: “no-cache”, “changed”: false, “connection”: “close”, “content”: “{“message”:“Permission denied”}”, “content_length”: “31”, “content_type”: “application/json; charset=UTF-8”, “date”: “Fri, 22 May 2020 03:20:23 GMT”, “expires”: “-1”, “invocation”: { “module_args”: { “attributes”: null, “backup”: null, “body”: null, “body_format”: “raw”, “client_cert”: null, “client_key”: null, “content”: null, “creates”: null, “delimiter”: null, “dest”: null, “directory_mode”: null, “follow”: false, “follow_redirects”: “safe”, “force”: false, “force_basic_auth”: true, “group”: null, “headers”: { “Authorization”: “Basic YWRtaW46YWRtaW4=” }, “http_agent”: “ansible-httpget”, “method”: “GET”, “mode”: null, “owner”: null, “password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”, “regexp”: null, “remote_src”: null, “removes”: null, “return_content”: true, “selevel”: null, “serole”: null, “setype”: null, “seuser”: null, “src”: null, “status_code”: [ 200 ], “timeout”: 30, “unsafe_writes”: null, “url”: “http://192.168.50.164:3000/api/auth/keys”, “url_password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”, “url_username”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”, “use_proxy”: true, “user”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”, “validate_certs”: true } }, “json”: { “message”: “Permission denied” }, “msg”: “Status code was 403 and not [200]: HTTP Error 403: Forbidden”, “pragma”: “no-cache”, “redirected”: false, “status”: 403, “url”: “http://192.168.50.164:3000/api/auth/keys”