ansible / ansible.builtin / v2.9.27 / module / win_dotnet_ngen Runs ngen to recompile DLLs after .NET updates | "added in version" 2.0 of ansible.builtin" Authors: Peter Mounce (@petemounce) preview | supported by communityansible.builtin.win_dotnet_ngen (v2.9.27) — module
pip
Install with pip install ansible==2.9.27
After .NET framework is installed/updated, Windows will probably want to recompile things to optimise for the host.
This happens via scheduled task, usually at some inopportune time.
This module allows you to run this task on your own schedule, so you incur the CPU hit at some more convenient and controlled time.
U(https://docs.microsoft.com/en-us/dotnet/framework/tools/ngen-exe-native-image-generator#native-image-service)
U(http://blogs.msdn.com/b/dotnet/archive/2013/08/06/wondering-why-mscorsvw-exe-has-high-cpu-usage-you-can-speed-it-up.aspx)
- name: Run ngen tasks win_dotnet_ngen:
dotnet_ngen64_eqi_exit_code: description: The exit code after running the 64-bit ngen.exe executeQueuedItems command. returned: 64-bit ngen executable exists sample: 0 type: int dotnet_ngen64_eqi_output: description: The stdout after running the 64-bit ngen.exe executeQueuedItems command. returned: 64-bit ngen executable exists sample: sample output type: str dotnet_ngen64_update_exit_code: description: The exit code after running the 64-bit ngen.exe update /force command. returned: 64-bit ngen executable exists sample: 0 type: int dotnet_ngen64_update_output: description: The stdout after running the 64-bit ngen.exe update /force command. returned: 64-bit ngen executable exists sample: sample output type: str dotnet_ngen_eqi_exit_code: description: The exit code after running the 32-bit ngen.exe executeQueuedItems command. returned: 32-bit ngen executable exists sample: 0 type: int dotnet_ngen_eqi_output: description: The stdout after running the 32-bit ngen.exe executeQueuedItems command. returned: 32-bit ngen executable exists sample: sample output type: str dotnet_ngen_update_exit_code: description: The exit code after running the 32-bit ngen.exe update /force command. returned: 32-bit ngen executable exists sample: 0 type: int dotnet_ngen_update_output: description: The stdout after running the 32-bit ngen.exe update /force command. returned: 32-bit ngen executable exists sample: sample output type: str