Execut printr-un turn ansible următorul cod:
comanda:
chdir={{ __iim_install_location }}/eclipse/tools/
"su - {{ __was_user }} -c {{ __iim_install_location }}/eclipse/tools/imcl install {{ __product_id }} -acceptLicense -repositories {{ __tmp_dir }}/{{ item.file_name }} -install_directory {_}_install_directory } -log {{ __log_file }}"
înregistrare: cout
with_items: „{{ __was_this_files }}”
changed_when: cout.stdout este definit și ( cout.stdout.find( __version_check ) != -1)
Primesc următoarea eroare. Validez și toate căile există în gazda la distanță.
{
"ansible_loop_var": "articol",
„_ansible_no_log”: fals,
„schimbat”: fals,
„articol”: {
"check_sum": "866C82D13C24189E880C70AF7AE20143851330AD1C090E0DCF687B612BBC8513",
„file_name”: „8.5.5.16-ws-was-ifph42899.zip”
},
„cmd”: „'su - was -c /opt/IBM/was/InstallationManager/eclipse/tools/imcl install 8.5.5.16-WS-WAS-IFPH42899_8.5.5016.20211218_1245 -acceptLicense -/softwares/MIBnt WAS/8.5.5.16-ws-was-ifph42899.zip -installationDirectory /opt/IBM/was5/WebSphere/AppServer -log /opt/IBM/was/logs/was_nd_fix_install.20211223102239.log'",
„_ansible_item_label”: {
"check_sum": "866C82D13C24189E880C70AF7AE20143851330AD1C090E0DCF687B612BBC8513",
„file_name”: „8.5.5.16-ws-was-ifph42899.zip”
},
"rc": 2,
„invocare”: {
„module_args”: {
„creează”: nul,
„executable”: nul,
„chdir”: „/opt/IBM/was/InstallationManager/eclipse/tools/”,
„strip_empty_ends”: adevărat,
"_raw_params": "\"su - was -c /opt/IBM/was/InstallationManager/eclipse/tools/imcl install 8.5.5.16-WS-WAS-IFPH42899_8.5.5016.20211218_1245 -software/License/IBMnt -software/IBMnt /WAS/8.5.5.16-ws-was-ifph42899.zip -installationDirectory /opt/IBM/was5/WebSphere/AppServer -log /opt/IBM/was/logs/was_nd_fix_install.20211223102239.log\",
„elimină”: nul,
„argv”: nul,
„avertizează”: adevărat,
„_uses_shell”: fals,
„stdin_add_newline”: adevărat,
„stdin”: nul
}
},
"msg": "[Errno 2] Nu există un fișier sau un director în numele căii.: b'su - was -c /opt/IBM/was/InstallationManager/eclipse/tools/imcl install 8.5.5.16-WS- WAS-IFPH42899_8.5.5016.20211218_1245 -acceptLicense -repositories /mnt/software/IBM/WAS/8.5.5.16-ws-was-ifph42899.zip -installationDirectory /opt/IBM/wasphere/AppServer/IBSphere5 was/logs/was_nd_fix_install.20211223102239.log': b'su - was -c /opt/IBM/was/InstallationManager/eclipse/tools/imcl install 8.5.5.16-WS-WAS-IFPH42899_8.5.50License16.20.50116.5.50 /mnt/software/IBM/WAS/8.5.5.16-ws-was-ifph42899.zip -installationDirectory /opt/IBM/was5/WebSphere/AppServer -log /opt/IBM/was/logs/was_nd_fix_install.202112930log'2"23231
}