You can add more args to ``$params`` as required by the module. The
module can now be run on the Windows host either directly through Powershell
module can now be run on the Windows host either directly through Powershell
or through an IDE.
or through an IDE.
@ -344,7 +349,7 @@ these steps.
- Log onto the Windows server using the same user account that Ansible used to execute the module.
- Log onto the Windows server using the same user account that Ansible used to execute the module.
- Navigate to ``%TEMP%\..``. It should contain a folder starting with ``ansible-tmp-``.
- Navigate to ``%TEMP%\..``. It should contain a folder starting with ``ansible-tmp-``.
- Inside this folder, open the PowerShell script for the module.
- Inside this folder, open the PowerShell script for the module.
- In this script is a raw JSON script under ``$json_raw`` which contains the module arguments under ``module_args``. These args can be assigned manually to the ``$complex_args`` variable that is defined on your debug script.
- In this script is a raw JSON script under ``$json_raw`` which contains the module arguments under ``module_args``. These args can be assigned manually to the ``$params`` variable that is defined on your debug script.