Hello Guy's ,
In this video you will learn , how we can install windows packages by Ansible. For this we are using win_chocolatey module in Ansible and also we have to install choco.exe on windows server.
First of all , Install choco.exe on windows machine. Copy the command from below website and paste in Powershell.
https://chocolatey.org/install
Please find below playbook that we need to use on Ansible server:
---
hosts: windows
tasks:
name: Install firefox
chocolatey.chocolatey.win_chocolatey:
name: '{{ item }}'
state: present
loop:
firefox
To run Playbook on Ansible server use below command:
$ ansible-playbook /etc/ansible/Playbook/win_firefox.yaml
Useful link For Ansible Server:
https://docs.ansible.com/ansible/2.5/...
Useful link for Windows Server:
https://chocolatey.org/install
Useful Search:
win_chocolatey module | win_chocolatey packages | install chocolatey
| install win_chocolatey | ansible install chocolatey offline | win_chocolatey source | ansible chocolatey tutorial | ansible windows modules
Thank you!!!!