Тёмный

Manage Windows with Ansible with Kerberos Active Directory authentication 

VirtualizationHowto
Подписаться 54 тыс.
Просмотров 10 тыс.
50% 1

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/ansi...
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/2...
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/

Хобби

Опубликовано:

 

27 окт 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 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/
Далее
Manage Windows like Linux with Ansible
41:39
Просмотров 101 тыс.
치토스로 체감되는 요즘 물가
00:16
Просмотров 4,2 млн
MANAGE WINDOWS SERVER WITH ANSIBLE
30:17
Просмотров 7 тыс.
This web UI for Ansible is so damn useful!
20:07
Просмотров 457 тыс.
Ansible - Setting up kerberos authentication
11:05
Просмотров 9 тыс.
Automating my Homelab with Ansible
13:18
Просмотров 331 тыс.
Стильная упаковка
0:14
Просмотров 1,7 млн