Server IP : 85.214.239.14 / Your IP : 18.218.177.226 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/ansible_collections/community/windows/plugins/modules/ |
Upload File : |
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2015, Peter Mounce <public@neverrunwithscissors.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) DOCUMENTATION = r''' --- module: win_dotnet_ngen short_description: Runs ngen to recompile DLLs after .NET updates description: - 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) options: {} notes: - There are in fact two scheduled tasks for ngen but they have no triggers so aren't a problem. - There's no way to test if they've been completed. - The stdout is quite likely to be several megabytes. author: - Peter Mounce (@petemounce) ''' EXAMPLES = r''' - name: Run ngen tasks community.windows.win_dotnet_ngen: ''' RETURN = r''' 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 type: int sample: 0 dotnet_ngen_update_output: description: The stdout after running the 32-bit ngen.exe update /force command. returned: 32-bit ngen executable exists type: str sample: sample output dotnet_ngen_eqi_exit_code: description: The exit code after running the 32-bit ngen.exe executeQueuedItems command. returned: 32-bit ngen executable exists type: int sample: 0 dotnet_ngen_eqi_output: description: The stdout after running the 32-bit ngen.exe executeQueuedItems command. returned: 32-bit ngen executable exists type: str sample: sample output 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 type: int sample: 0 dotnet_ngen64_update_output: description: The stdout after running the 64-bit ngen.exe update /force command. returned: 64-bit ngen executable exists type: str sample: sample output dotnet_ngen64_eqi_exit_code: description: The exit code after running the 64-bit ngen.exe executeQueuedItems command. returned: 64-bit ngen executable exists type: int sample: 0 dotnet_ngen64_eqi_output: description: The stdout after running the 64-bit ngen.exe executeQueuedItems command. returned: 64-bit ngen executable exists type: str sample: sample output '''