Use Windows PowerShell with Ansible
Ansible is a very powerful configuration management platform that allows using many different automation tools for configuring your Windows hosts. One of those is Windows PowerShell. How can you use Windows PowerShell with Ansible?
Ansible natively provides modules that allow interacting with your Windows hosts using Powershell. Those are win_powershell, win_command, and win_shell. You can find more information about those here:
Win_powershell:
https://docs.ansible.com/ansible/latest/collections/ansible/windows/win_powershell_module.html
win_command:
https://docs.ansible.com/ansible/latest/collections/ansible/windows/win_command_module.html#ansible-collections-ansible-windows-win-command-module
win_shell:
https://docs.ansible.com/ansible/latest/collections/ansible/windows/win_shell_module.html#ansible-collections-ansible-windows-win-shell-module
You can easily configure your Windows host for Ansible control node communication using the community driven script ConfigureRemotingForAnsible.ps1 script. Read more about that script here:
https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1
Watch my previous video on how to manage Windows with Ansible, showing how to configure Kerberos authentication using Active Directory credentials here:
https://www.youtube.com/watch?v=M18yDGAd9TU
Видео Use Windows PowerShell with Ansible канала VirtualizationHowto
Ansible natively provides modules that allow interacting with your Windows hosts using Powershell. Those are win_powershell, win_command, and win_shell. You can find more information about those here:
Win_powershell:
https://docs.ansible.com/ansible/latest/collections/ansible/windows/win_powershell_module.html
win_command:
https://docs.ansible.com/ansible/latest/collections/ansible/windows/win_command_module.html#ansible-collections-ansible-windows-win-command-module
win_shell:
https://docs.ansible.com/ansible/latest/collections/ansible/windows/win_shell_module.html#ansible-collections-ansible-windows-win-shell-module
You can easily configure your Windows host for Ansible control node communication using the community driven script ConfigureRemotingForAnsible.ps1 script. Read more about that script here:
https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1
Watch my previous video on how to manage Windows with Ansible, showing how to configure Kerberos authentication using Active Directory credentials here:
https://www.youtube.com/watch?v=M18yDGAd9TU
Видео Use Windows PowerShell with Ansible канала VirtualizationHowto
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Acemagic AD15 Mini PC Review as Proxmox Home Lab Server](https://i.ytimg.com/vi/IkS61vESHLo/default.jpg)
![Mini PC vs Server for running virtual machines](https://i.ytimg.com/vi/YEW4t2Fm7Ao/default.jpg)
![k0s vs k3s - Which is best for home lab?](https://i.ytimg.com/vi/GSqxR0Hq-zE/default.jpg)
![Control your home lab server from anywhere! - Tiny Pilot Voyager 2a Review](https://i.ytimg.com/vi/tx724dhxGxc/default.jpg)
![VMware ESXi Networking Class for Home lab - the basics](https://i.ytimg.com/vi/3R6ayglqHwY/default.jpg)
![Netshoot Docker container for Docker compose networking host troubleshooting](https://i.ytimg.com/vi/wqtEUFDdZXU/default.jpg)
![Home lab Dashboard for Apps using Kubeapps install!](https://i.ytimg.com/vi/ZBVOclH8LuQ/default.jpg)
![RVTools - The Ultimate free VMware Tool you need to have!](https://i.ytimg.com/vi/2A-fOuNQWKc/default.jpg)
![Best DNS Server for Home lab - Pihole Unbound configuration!](https://i.ytimg.com/vi/XbbziN_H71U/default.jpg)
![Ultimate Pi-hole configuration guide, SSL certificates, automatic updates, automatic sync, more!](https://i.ytimg.com/vi/U7zrlDF7XHU/default.jpg)
![Home Lab Tour 2023 - VMware vSphere, vSAN, Proxmox, Docker, Unifi, Synology, MORE!](https://i.ytimg.com/vi/-gINxvTTybM/default.jpg)
![ChatGPT Chatbot with Docker Compose programming Home Lab Services](https://i.ytimg.com/vi/P1sZs4nU5TI/default.jpg)
![Uptime Kuma Open Source Uptime Monitor for HomeLab Server monitoring](https://i.ytimg.com/vi/py68mv_vyi8/default.jpg)
![Server Monitoring DASHBOARD for inventory health metrics and alerts](https://i.ytimg.com/vi/H3e_VO2be70/default.jpg)
![Best Server Monitoring with Prometheus and Grafana using Node Exporter and cAdvisor](https://i.ytimg.com/vi/RAqMP_NnGec/default.jpg)
![Home Lab GOALS 2023 - Server, networking, containers, Kubernetes, and more!](https://i.ytimg.com/vi/v8gyykPu60o/default.jpg)
![Low Power Home Server using automated shutdowns to reduce electricity](https://i.ytimg.com/vi/q69VZkdJiCk/default.jpg)
![Best Docker Containers for Synology NAS](https://i.ytimg.com/vi/-ApgO4P3DWc/default.jpg)
![Best Home Server Storage for virtualization - Intel Optane in VMware vSAN](https://i.ytimg.com/vi/r6jYJliL-Rg/default.jpg)
![Best Virtual Machine Creation tool to create and run Linux VMs like containers](https://i.ytimg.com/vi/U_44gHyCcoc/default.jpg)
![Best Notification System for Home Servers with Apprise Push Alerts](https://i.ytimg.com/vi/Cj7A46NuACA/default.jpg)