Skip to main content

Posts

Showing posts with the label ansible

Ansible for Microsoft's Windows

Hello Thanks for visiting RvKmR's blogs T oday we are discussing managing Microsoft Windows machines with Ansible. We know that managing Linux machines with Ansible is quite common nowadays. but managing windows machines with Ansible is quite new. SSH service is used to manage Linux machine and for windows WinRM. Please check more details about WinRM here . L ets checkout steps to configure WINRM for ansible. Below are requirements for WINRM configuration on target windows machine. Admin Credentials of target windows machine. Stop firewall on target windows machine. Powershell version 3.0 and .net framework 4.0 Let's start configuring Windows machine: I am considering you have administrator account credentials with you. Open Firewall in windows machines and turn of it or allow port 5985 and 5986. Update Powershell and .Net Framework with below commands on PowerShell. $url ="https://raw.githubusercontent.com/jborean93/ansible...

Collect ansible Inventory from directories

Hello Thanks for visiting RvKmR.blogspot.in In this blog post, I am explaining about ansible inventory. While working with ansible we need to provide inventory to ansible commands. We may have ansible inventory structure as like below. There can be some tasks that you wish to perform on all of the inventory. But it is difficult to collect or merge these into one file. Lets do it ... level1/ ├── level2-0 │   └── inventory │       ├── server01 │       ├── server02 │       ├── server03 │       ├── server04 │       ├── server05 │       ├── server06 │       ├── server07 │       ├── server08 │       ├── server09 │       └── server10 ├── level2-1 │   └── inventory │...