The full traceback is:
File "/tmp/ansible_isam_payload_4f6o1zl4/ansible_isam_payload.zip/ansible/modules/isam.py", line 135, in main
File "", line 1, in
File "/usr/local/lib/python3.9/site-packages/ibmsecurity-2023.11.10.0-py3.9.egg/ibmsecurity/isam/application_logs.py", line 18, in get_all
return isamAppliance.invoke_get("Retrieving the contents of a directory from the application log files area",
File "/usr/local/lib/python3.9/site-packages/ibmsecurity-2023.11.10.0-py3.9.egg/ibmsecurity/appliance/isamappliance.py", line 474, in invoke_get
response = self._invoke_request(self.session.get, description, uri,
File "/usr/local/lib/python3.9/site-packages/ibmsecurity-2023.11.10.0-py3.9.egg/ibmsecurity/appliance/isamappliance.py", line 351, in _invoke_request
self._process_connection_error(ignore_error=ignore_error, return_obj=return_obj)
File "/usr/local/lib/python3.9/site-packages/ibmsecurity-2023.11.10.0-py3.9.egg/ibmsecurity/appliance/isamappliance.py", line 96, in _process_connection_error
raise IBMError("HTTP Return code: 502", "Failed to connect to server")
fatal: [192.168.229.133]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"action": "ibmsecurity.isam.application_logs.get_all",
"adminProxyApplianceShortName": false,
"adminProxyHostname": null,
"adminProxyPort": 443,
"adminProxyProtocol": "https",
"appliance": "ISAM",
"force": false,
"isamapi": {
"flat_details": true
},
"lmi_port": 443,
"log": "DEBUG",
"omitAdminProxy": false,
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
}
},
"log": "[2024-01-25 14:59:53,949] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.user.applianceuser] [init():10] Creating a user\n[2024-01-25 14:59:53,949] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.user.user] [init():9] Creating a user\n[2024-01-25 14:59:53,949] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.isamappliance] [init():20] Creating an ISAMAppliance\n[2024-01-25 14:59:53,949] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.isamappliance] [init():27] Cert object is None, using BA Auth with userid/password.\n[2024-01-25 14:59:53,949] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [init():52] Creating an IBMAppliance\n[2024-01-25 14:59:53,950] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_log_request():674] Request: GET /core/sys/versions desc=Retrieving version\n[2024-01-25 14:59:53,950] [PID:27690 TID:140257798174528] [INFO] [ibmsecurity.appliance.ibmappliance] [_log_desc():43] *** Retrieving version ***\n[2024-01-25 14:59:53,950] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_process_warnings():104] Checking for deployment model None.\n[2024-01-25 14:59:53,950] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_process_warnings():112] Checking for minimum version: None.\n[2024-01-25 14:59:53,950] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_process_warnings():128] Checking for one of required modules: None.\n[2024-01-25 14:59:53,950] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_process_warnings():145] Warnings: []\n[2024-01-25 14:59:53,950] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_invoke_request():325] Headers are: {'Accept': 'application/json', 'Content-type': 'application/json'}\n[2024-01-25 14:59:53,950] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_invoke_request():330] Input Data: {}\n[2024-01-25 14:59:53,950] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_suppress_ssl_warning():48] Suppressing SSL Warnings.\n[2024-01-25 14:59:53,951] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_url():37] Issuing request to: https://ISAM:443/core/sys/versions\n[2024-01-25 14:59:53,951] [PID:27690 TID:140257798174528] [DEBUG] [urllib3.connectionpool] [_new_conn():1003] Starting new HTTPS connection (1): isam:443\n[2024-01-25 15:00:08,969] [PID:27690 TID:140257798174528] [CRITICAL] [ibmsecurity.appliance.ibmappliance] [_process_connection_error():95] Failed to connect to server.\n[2024-01-25 15:00:08,969] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_log_request():674] Request: GET /firmware_settings desc=Retrieving a list of firmware settings\n[2024-01-25 15:00:08,969] [PID:27690 TID:140257798174528] [INFO] [ibmsecurity.appliance.ibmappliance] [_log_desc():43] *** Retrieving a list of firmware settings ***\n[2024-01-25 15:00:08,969] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_process_warnings():104] Checking for deployment model Appliance.\n[2024-01-25 15:00:08,969] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_process_warnings():112] Checking for minimum version: None.\n[2024-01-25 15:00:08,969] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_process_warnings():128] Checking for one of required modules: None.\n[2024-01-25 15:00:08,969] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_process_warnings():145] Warnings: []\n[2024-01-25 15:00:08,969] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_invoke_request():325] Headers are: {'Accept': 'application/json', 'Content-type': 'application/json'}\n[2024-01-25 15:00:08,969] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_invoke_request():330] Input Data: {}\n[2024-01-25 15:00:08,969] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_suppress_ssl_warning():48] Suppressing SSL Warnings.\n[2024-01-25 15:00:08,969] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_url():37] Issuing request to: https://ISAM:443/firmware_settings\n[2024-01-25 15:00:08,970] [PID:27690 TID:140257798174528] [DEBUG] [urllib3.connectionpool] [_new_conn():1003] Starting new HTTPS connection (2): isam:443\n[2024-01-25 15:00:18,990] [PID:27690 TID:140257798174528] [CRITICAL] [ibmsecurity.appliance.ibmappliance] [_process_connection_error():95] Failed to connect to server.\n[2024-01-25 15:00:18,991] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_log_request():674] Request: GET /setup_complete desc=Get Setup Complete Settings\n[2024-01-25 15:00:18,991] [PID:27690 TID:140257798174528] [INFO] [ibmsecurity.appliance.ibmappliance] [_log_desc():43] *** Get Setup Complete Settings ***\n[2024-01-25 15:00:18,991] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_process_warnings():104] Checking for deployment model None.\n[2024-01-25 15:00:18,991] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_process_warnings():112] Checking for minimum version: None.\n[2024-01-25 15:00:18,991] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_process_warnings():128] Checking for one of required modules: None.\n[2024-01-25 15:00:18,991] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_process_warnings():145] Warnings: []\n[2024-01-25 15:00:18,991] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_invoke_request():325] Headers are: {'Accept': 'application/json', 'Content-type': 'application/json'}\n[2024-01-25 15:00:18,991] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_invoke_request():330] Input Data: {}\n[2024-01-25 15:00:18,991] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_suppress_ssl_warning():48] Suppressing SSL Warnings.\n[2024-01-25 15:00:18,991] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_url():37] Issuing request to: https://ISAM:443/setup_complete\n[2024-01-25 15:00:18,992] [PID:27690 TID:140257798174528] [DEBUG] [urllib3.connectionpool] [_new_conn():1003] Starting new HTTPS connection (3): isam:443\n[2024-01-25 15:00:29,009] [PID:27690 TID:140257798174528] [CRITICAL] [ibmsecurity.appliance.ibmappliance] [_process_connection_error():95] Failed to connect to server.\n[2024-01-25 15:00:29,009] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.utilities.tools] [create_query_string():179] Query Parameter to be used: ?recursive=yes&flat_details=True\n[2024-01-25 15:00:29,010] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_log_request():674] Request: GET /isam/application_logs/?recursive=yes&flat_details=True desc=Retrieving the contents of a directory from the application log files area\n[2024-01-25 15:00:29,010] [PID:27690 TID:140257798174528] [INFO] [ibmsecurity.appliance.ibmappliance] [_log_desc():43] *** Retrieving the contents of a directory from the application log files area ***\n[2024-01-25 15:00:29,010] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_process_warnings():104] Checking for deployment model Appliance.\n[2024-01-25 15:00:29,010] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_process_warnings():112] Checking for minimum version: None.\n[2024-01-25 15:00:29,010] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_process_warnings():128] Checking for one of required modules: None.\n[2024-01-25 15:00:29,010] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_process_warnings():145] Warnings: []\n[2024-01-25 15:00:29,010] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_invoke_request():325] Headers are: {'Accept': 'application/json', 'Content-type': 'application/json'}\n[2024-01-25 15:00:29,010] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_invoke_request():330] Input Data: {}\n[2024-01-25 15:00:29,010] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_suppress_ssl_warning():48] Suppressing SSL Warnings.\n[2024-01-25 15:00:29,010] [PID:27690 TID:140257798174528] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_url():37] Issuing request to: https://ISAM:443/isam/application_logs/?recursive=yes&flat_details=True\n[2024-01-25 15:00:29,011] [PID:27690 TID:140257798174528] [DEBUG] [urllib3.connectionpool] [_new_conn():1003] Starting new HTTPS connection (4): isam:443\n[2024-01-25 15:00:39,020] [PID:27690 TID:140257798174528] [CRITICAL] [ibmsecurity.appliance.ibmappliance] [_process_connection_error():95] Failed to connect to server.\n",
"msg": "('HTTP Return code: 502', 'Failed to connect to server')",
"name": "ibmsecurity.isam.application_logs.get_all"
}
PLAY RECAP ********************************************************************************************************************
192.168.229.133 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Please help If anyone knows this...