Manage Windows with Ansible with Kerberos Active Directory authentication

  Рет қаралды 10,541

VirtualizationHowto

2 жыл бұрын

In this technical overview, we will take a look at how to manage Windows with Ansible, including looking at setting up the prerequisites for installing Ansible for Windows management, as well as installing Ansible itself.
We will take a dive into configuring your Ansible environment for Kerberos authentication which allows setting up Ansible to authenticate with your Active Directory domain. This is extremely important in Active Directory environments.
You can clone down the shell script from my Github repository located here:
github.com/brandonleegit/ansibleinstall
Also, the commands to run are:
sudo apt-get install gcc python-dev libkrb5-dev -y
sudo apt-get install python3-pip -y
sudo pip3 install --upgrade pip
sudo pip3 install --upgrade virtualenv
pip3 install pywinrm
sudo apt install krb5-user -y
sudo apt-get install python3-kerberos -y
sudo pip3 install ansible
By installing the above prerequisites and Ansible, you can easily manage your Windows servers in just a few steps.
Visit the official Ansible documentation located here:
docs.ansible.com/
Take a look at my detailed write-up on how to configure Ansible with Kerberos authentication here:
www.virtualizationhowto.com/2018/04/configure-ansible-windows-server-kerberos-authentication-in-ubuntu/
Also, check out Virtualizationhowto.com to read more about Ansible and many other topics around cloud, virtualization, networking, automation, security, and much more.
www.virtualizationhowto.com/

Пікірлер: 13
@olewis843
@olewis843 2 жыл бұрын
Appreciate the knowledge and step by step explanations. Once again Thank you!
@tonyg460
@tonyg460 2 жыл бұрын
Thanks for posting looking at doing a POC at work.
@VirtualizationHowto
@VirtualizationHowto 2 жыл бұрын
Thank you Tony for your comment 👍
@usmanmohammad2169
@usmanmohammad2169 2 жыл бұрын
Hi, thanks for the video it helps me a lot !
@VirtualizationHowto
@VirtualizationHowto 2 жыл бұрын
Glad it helped!
@UrsRau
@UrsRau 2 жыл бұрын
Thanks for this nice and clear instruction. Have you ever used winrm or Kerberos inside of tower or awx? I have it all working under ansible cli but we would like to switch to using the FREE AWX WEB GUI. Can't find a nice guide to pick up and shift a working cli setup to the GUI ...
@VirtualizationHowto
@VirtualizationHowto 2 жыл бұрын
Urs, thank you for the comment! I have covered this on my blog quite a while ago. I was using Ansible Tower in the tutorial. However, the instructions should be the same for AWX. Check out the post here: www.virtualizationhowto.com/2018/05/manage-and-configure-windows-servers-with-ansible-tower/
@ekelola
@ekelola 2 жыл бұрын
Question please: does the domain account absolutely need to be have been added to an administrator group on the windows vm already? before being able to authenticate with that user?
@VirtualizationHowto
@VirtualizationHowto 2 жыл бұрын
Administrator permissions are not required as long as winrm is configured to accept the user connection and the user has permissions to perform the tasks you are trying to perform on the target Windows system.
@yaro137
@yaro137 Жыл бұрын
So you managed to ping the windows server without any prerequisites done on it's side? Even RedHat didn't manage that in their tutorial so either well done or something's missing here.
@VirtualizationHowto
@VirtualizationHowto Жыл бұрын
Using Kerberos domain authentication, there are no prerequisites for making this work. WinRM gets extremely difficult in a workgroup setting though. Also, to be quite honest, there is not a lot of good documentation from a Windows side of things. Much of this I had to learn with trial and error.
@niharikaraj5262
@niharikaraj5262 2 жыл бұрын
how to find default realm?
@VirtualizationHowto
@VirtualizationHowto 2 жыл бұрын
Niharika, see my blog post here for a more in depth view of Ansible configuration for Kerberos: www.virtualizationhowto.com/2018/04/configure-ansible-windows-server-kerberos-authentication-in-ubuntu/
Iron Chin ✅ Isaih made this look too easy
00:13
Power Slap
Рет қаралды 36 МЛН
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
Little girl's dream of a giant teddy bear is about to come true #shorts
00:32
No empty
00:35
Mamasoboliha
Рет қаралды 9 МЛН
Gosta de 🌟 e 🍿?
0:19
F L U S C O M A N I A
Рет қаралды 11 МЛН
Será Que a FITA vai Grudar ela na PAREDE😱 #shorts
0:44
Lucan Pevidor
Рет қаралды 57 МЛН
28 июля 2024 г.
0:20
TULPAR_KG🇰🇬
Рет қаралды 6 МЛН
🎀 strong challenge with @RezoHulk #challenge #funny #foryou #gym
0:30
Jumping off balcony pulls her tooth! 🫣🦷
1:00
Justin Flom
Рет қаралды 23 МЛН