Hi Team,
I’m writing the playbook for the Notepad++ installation of the 50k servers but while running the playbook I’ve found the downloaded file from Jfrog artifactory is corrupt. can you please advise where I’m doing wrong, I tried to run manually and found the same error, moreover file size is 3 KB only rather it should be 3 MB +.
- name: Download Notepad++
win_get_url:
url: ‘{{ notepadpp_download_url }}’
dest: ‘{{ tempdir.path }}\notepad-setup.exe’
username: ‘XXXXX’
password: ‘XXXXX’
Playbook output:
TASK [notepadplus : Download Notepad++] ********************************************************************************************************************************
task path: /home//workspace/*/roles/notepadplus/tasks/main.yml:16
Using module file /usr/local/lib/python3.6/site-packages/ansible/modules/windows/win_get_url.ps1
Pipelining is enabled.
<XYZ.abc.local> ESTABLISH WINRM CONNECTION FOR USER: 123456@abc.LOCAL on PORT 5985 TO XYZ.abc.local
calling kinit with subprocess for principal 12345@abc.LOCAL
EXEC (via pipeline wrapper)
changed: [100.100.1000.1000] => {
“changed”: true,
“checksum_dest”: “598f5089d9e6b7319d638bdf56a9ac35d25ff19e”,
“checksum_src”: “598f5089d9e6b7319d638bdf56a9ac35d25ff19e”,
“dest”: “C:\Users\12345\AppData\Local\Temp\ansible.lfwbtus3.xojnotepadpp\notepad-setup.exe”,
“elapsed”: 0.3128724,
“invocation”: {
“module_args”: {
“checksum”: null,
“checksum_algorithm”: “sha1”,
“checksum_url”: null,
“dest”: “C:\Users\12345\AppData\Local\Temp\ansible.lfwbtus3.xojnotepadpp\notepad-setup.exe”,
“force”: true,
“force_basic_auth”: false,
“headers”: {},
“password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”,
“proxy_password”: null,
“proxy_url”: null,
“proxy_username”: null,
“timeout”: 10,
“url”: “http://artifactory.org.local/artifactory/webapp/#/artifacts/browse/tree/General/thirdpartysoftware-generic-local/notepad++/npp.7.8.Installer.x64.exe”,
“url_password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”,
“url_username”: “XXXXX”,
“use_proxy”: true,
“username”: “XXXXX”,
“validate_certs”: true
}
},
“msg”: “OK”,
“size”: 2725,
“status_code”: 200,
“url”: “http://artifactory.org.local/artifactory/webapp/#/artifacts/browse/tree/General/thirdpartysoftware-generic-local/notepad++/npp.7.8.Installer.x64.exe”
TASK [notepadplus : Install Notepad++] *********************************************************************************************************************************
task path: /home/ /workspace/Application PEN Test/roles/notepadplus/tasks/main.yml:23
Using module file /usr/local/lib/python3.6/site-packages/ansible/modules/windows/win_package.ps1
Pipelining is enabled.
< . .local> ESTABLISH WINRM CONNECTION FOR USER: cccccc@EXPDAGDEV.LOCAL on PORT 5985 TO dfdsfsdf.sdfsfsd.local
calling kinit with subprocess for principal fsdfsdfdsfS@fsdfsdf.LOCAL
EXEC (via pipeline wrapper)
fatal: [100.100.100.100]: FAILED! => {
“changed”: false,
“msg”: “failed to run install process (C:\Users\xxx\AppData\Local\Temp\ansible.lfwbtus3.xojnotepadpp\notepad-setup.exe /S): Exception calling "CreateProcess" with "5" argument(s): "CreateProcessW() failed (The file or directory is corrupted and unreadable, Win32ErrorCode 1392)"”,
“reboot_required”: false
}