问题: 如以下日志所示,发布机无法下载Tinker_Installer_v0.1.6.exe,通过发布机中浏览器访问http://192.168.110.18/download/applets/Tinker_Installer_v0.1.6.exe时,会重定向到
https://jms-pkg.fit2cloud.com/jumpserver/download/applets/Tinker_Installer_v0.1.6.exe,然后出现404.
…
2024-08-22 11:25:39
PLAY [all] *********************************************************************
2024-08-22 11:25:39
TASK [Gathering Facts] *********************************************************
2024-08-22 11:25:41 ok: [应用发布机]
2024-08-22 11:25:41
TASK [Check if CORE_HOST is redirects] *****************************************
2024-08-22 11:25:43 ok: [应用发布机]
2024-08-22 11:25:43
TASK [Check failed] ************************************************************
2024-08-22 11:25:43 skipping: [应用发布机]
2024-08-22 11:25:43
TASK [Install RDS-RD-Server (RDS)] *********************************************
2024-08-22 11:25:44 ok: [应用发布机]
2024-08-22 11:25:44
TASK [Stop Tinker before install] **********************************************
2024-08-22 11:25:45 ok: [应用发布机]
2024-08-22 11:25:45
TASK [Download JumpServer Tinker installer] ************************************
2024-08-22 11:25:47 fatal: [应用发布机]: FAILED! => {“changed”: false, “dest”: “C:\Users\Administrator\AppData\Local\Temp\Tinker_Installer_v0.1.6.exe”, “elapsed”: 0.31250269999999997, “msg”: “Error downloading ‘http://192.168.110.18/download/applets/Tinker_Installer_v0.1.6.exe’ to ‘C:\Users\Administrator\AppData\Local\Temp\Tinker_Installer_v0.1.6.exe’: The remote server returned an error: (404) Not Found.”, “status_code”: 404, “url”: “http://192.168.110.18/download/applets/Tinker_Installer_v0.1.6.exe”}
2024-08-22 11:25:47
TASK [debug] *******************************************************************
2024-08-22 11:25:47 ok: [应用发布机] => {
“ansible_failed_result”: {
“changed”: false,
“dest”: “C:\Users\Administrator\AppData\Local\Temp\Tinker_Installer_v0.1.6.exe”,
“elapsed”: 0.31250269999999997,
“failed”: true,
“invocation”: {
“module_args”: {
“checksum”: null,
“checksum_algorithm”: “sha1”,
“checksum_url”: null,
“client_cert”: null,
“client_cert_password”: null,
“dest”: “C:\Users\Administrator\AppData\Local\Temp\Tinker_Installer_v0.1.6.exe”,
“follow_redirects”: “safe”,
“force”: true,
“force_basic_auth”: false,
“headers”: null,
“http_agent”: “ansible-httpget”,
“maximum_redirection”: 50,
“proxy_password”: null,
“proxy_url”: null,
“proxy_use_default_credential”: false,
“proxy_username”: null,
“url”: “http://192.168.110.18/download/applets/Tinker_Installer_v0.1.6.exe”,
“url_method”: null,
“url_password”: null,
“url_timeout”: 30,
“url_username”: null,
“use_default_credential”: false,
“use_proxy”: true,
“validate_certs”: false
}
},
“msg”: “Error downloading ‘http://192.168.110.18/download/applets/Tinker_Installer_v0.1.6.exe’ to ‘C:\Users\Administrator\AppData\Local\Temp\Tinker_Installer_v0.1.6.exe’: The remote server returned an error: (404) Not Found.”,
“status_code”: 404,
“url”: “http://192.168.110.18/download/applets/Tinker_Installer_v0.1.6.exe”
}
}
2024-08-22 11:25:47
TASK [fail] ********************************************************************
2024-08-22 11:25:47 fatal: [应用发布机]: FAILED! => {“changed”: false, “msg”: “Failed to deploy applet host”}
2024-08-22 11:25:47
PLAY RECAP *********************************************************************
应用发布机 : ok=5 changed=0 unreachable=0 failed=0 skipped=1 rescued=2 ignored=0
2024-08-22 11:25:47 Task terminal.tasks.run_applet_host_deployment[a5e2ad04-37f9-4284-8742-577856c2f5d7] succeeded in 9.488577345997328s: None