

Step 3: Update software on a remote computer Once installed, open Notepad++ and press `F1` to ensure we have installed the requested version. Note that we are not installing the latest version in this example as we will update to that in the next step. Run `ansible-playbook install_notepadplusplus.yaml -i ,` (note the comma after the IP address) to install Notepad++ on your remote computer.

Prompt: "Enter the password for the node"Īnsible_winrm_server_cert_validation: ignore Let’s create a file called `install_notepadplusplus.yml` with the following contents:. Now that we have the win_chocolatey module installed, we can go ahead and install or manage software on our remote computers. Step 2: Install software on a remote computer That’s all there is to it! Ansible can now work with Chocolatey using the modules in the Collection. To install the Collection, and therefore the win_chocolatey modules, on your Ansible server, run: ansible-galaxy collection install chocolatey.chocolatey The Chocolatey Ansible Content Collection is called chocolatey:chocolatey and is maintained by the Chocolatey Team. We need to install the Chocolatey module so that Ansible can use. Step 1: Configure Ansible to use Chocolatey. If you are using a different username, make sure you change it! The code examples shown below are all using the user ‘ansible’ as the default. Therefore, we need to ensure we have that enabled by running `Enable-PSRemoting` on the remote Windows computer.įor production use, we recommend enabling HTTPS for WinRM. We’re going to take you through three simple steps to show you how simple it is to deploy and update software using Chocolatey and Ansible.Īnsible uses Winrm by default to communicate with Windows machines. Using Red Hat Ansible Automation Platform and Chocolatey, you can easily keep your software up-to-date and react quickly to bug fixes, security issues and 0-days on dozens, hundreds or thousands of nodes. It’s a constant battle to keep your Windows estate updated and secure.
