Step 10:Create inventory for Windows node system :~# vi /etc/ansible/hosts If you want to reinstall them, consider using `-force`. All requested collections are already installed. Starting galaxy collection install process Step 9: Install the plugins of chocolatey for ansible :~# ansible-galaxy collection install chocolatey.chocolatey Step 8: Check the availability of python package pywinrm :~# pip list | grep pywinrmĪnsible_winrm_server_cert_validation=ignore Step 7: Check the availability of python3-pip package :~# apt list -a python3 Step 6: Check the availability of Ansible package :~# apt list -a ansibleĪnsible/hirsute,hirsute,now 4.8.0-1ppa~hirsute all Step 5: Check the OS version by using the following command :~# lsb_release -a C:\ProgramData\chocolatey\lib\yourPackageName).Ī shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'Īnd points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'. The packages themselves go to 'C:\ProgramData\chocolatey\lib' We are setting up the Chocolatey package repository. Restricting write permissions to Administrators WARNING: It's very likely you will need to close and reopen your shell Setting ChocolateyInstall to 'C:\ProgramData\chocolatey' Installing Chocolatey on the local machineĬreating ChocolateyInstall as an environment variable (targeting 'Machine') Getting latest version of the Chocolatey package for download.ĭownloading to C:\Users\Admin\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zipĮxtracting C:\Users\Admin\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip to C:\Users\Admin\AppData\Local\Temp\chocolatey\chocoInstall ::SecurityProtocol = ::SecurityProtocol -bor 3072 iex ((New-Object ).DownloadString(''))įorcing web requests to allow TLS v1.2 (Required for requests to ) Step 4: Install chocolatey by using the following command PS C:\WINDOWS\system32> Set-ExecutionPolicy Bypass -Scope Process -Force Step 2: Copy the installation command in chocolatey install page Step 3: Run Powershell ISE as an administrator
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |