Skip to content

These fixes made my labs work for GOAD / simular labs.

This is a log on my server:

Change request, this is also working on older hardware: TASK [Output result] *********************************************************** ok: [GOADMinidacd46-GOAD-DC01] => { "msg": "DHCP\r\n" }

TASK [Get IP address of network interface (Windows)] *************************** skipping: [GOADMinidacd46-GOAD-DC01]

TASK [Show IP address] ********************************************************* skipping: [GOADMinidacd46-GOAD-DC01]

TASK [Ending play for this host (Windows)] ************************************* skipping: [GOADMinidacd46-GOAD-DC01]

TASK [End play if configured (Windows)] **************************************** skipping: [GOADMinidacd46-GOAD-DC01]

TASK [Primary Method - Set up static IP address (Primary Method - PowerShell)] *** An exception occurred during task execution. To see the full traceback, use -vvv. The error was: at , : line 11 fatal: [GOADMinidacd46-GOAD-DC01]: FAILED! => {"changed": false, "msg": "internal error: failed to run exec_wrapper action async_wrapper: Ansible encountered a timeout while waiting for the async task to start and connect to the namedpipe. This can be affected by the performance of the target - you can increase this timeout usingWIN_ASYNC_STARTUP_TIMEOUT or just for this host using the win_async_startup_timeout hostvar if this keeps happening."} ...ignoring

TASK [Set old_hardware fact (Windows)] ***************************************** ok: [GOADMinidacd46-GOAD-DC01]

TASK [Show IP address] ********************************************************* ok: [GOADMinidacd46-GOAD-DC01] => { "msg": { "changed": false, "exception": "Ansible encountered a timeout while waiting for the async task to start and connect to the namedpipe. This can be affected by the performance of the target - you can increase this timeout usingWIN_ASYNC_STARTUP_TIMEOUT or just for this host using the win_async_startup_timeout hostvar if this keeps happening.\r\nAt line:117 char:9\r\n+ throw $msg\r\n+ ~~~~~~~~~~\r\n + CategoryInfo : OperationStopped: (Ansible encount...eeps happening.:String) [], RuntimeException\r\n + FullyQualifiedErrorId : Ansible encountered a timeout while waiting for the async task to start and connect to the namedpipe. This can be affected by the performance of the target - you can increase this timeout usingWIN_ASYNC_STARTUP_TIMEOUT or just for this host using the win_async_startup_timeout hostvar if this keeps happening.\r\n\r\nScriptStackTrace:\r\nat , : line 117\r\nat , : line 144\r\nat , : line 11\r\n", "failed": true, "msg": "internal error: failed to run exec_wrapper action async_wrapper: Ansible encountered a timeout while waiting for the async task to start and connect to the namedpipe. This can be affected by the performance of the target - you can increase this timeout usingWIN_ASYNC_STARTUP_TIMEOUT or just for this host using the win_async_startup_timeout hostvar if this keeps happening." } }

TASK [Fallback - Create file with ip changes with netsh.exe] ******************* changed: [GOADMinidacd46-GOAD-DC01]

TASK [Fallback - Set registry key for script execution on next reboot] ********* changed: [GOADMinidacd46-GOAD-DC01]

TASK [Fallback - Set registry key for script execution on next reboot] ********* ok: [GOADMinidacd46-GOAD-DC01]

TASK [Fallback - Reboot the machine to apply static IP (Fallback Method)] ****** changed: [GOADMinidacd46-GOAD-DC01]

TASK [Change ansible's ip address for the host (Windows)] ********************** ok: [GOADMinidacd46-GOAD-DC01]

TASK [Wait for the host's network interface to come back up (Windows)] ********* ok: [GOADMinidacd46-GOAD-DC01 -> localhost]

TASK [Clean up static IP script after reboot] ********************************** changed: [GOADMinidacd46-GOAD-DC01]

TASK [Set DNS (Windows)] ******************************************************* changed: [GOADMinidacd46-GOAD-DC01]

TASK [Set DNS search domain (Windows)] ***************************************** changed: [GOADMinidacd46-GOAD-DC01]

TASK [Lookup the timezone string for Windows] ********************************** ok: [GOADMinidacd46-GOAD-DC01]

TASK [Fail this host if we can't find the timezone] **************************** skipping: [GOADMinidacd46-GOAD-DC01]

TASK [Set the timezone (Windows)] **********************************************

  1. Why is this change neccesary? There was a bug in the current software for older hardware that will crash the original fire once and hope for the best so i've changed it to do the following commit, which works fine on my hardware.

  2. How does it address the issue?

  3. What side effects does this change have? please test it on decent hardware.

Merge request reports

Loading