How to Create Custom Windows Facts to Use in Ansible

Published: 24 October 2022
on channel: LondonIAC / Dennis McCarthy / Automation Engineer
830
18

In this video I'll take you through how to create custom windows facts to use in Ansible.

You can find all the code for this demo here: https://github.com/dmccuk/Ansible_win...

Clone the code and follow along!

SETUP:
Ansible Control Node: Ubuntu 20.04
Ansible version 2.9+
Windows 2022 server - Built in AWS - base image

We'll install Apache as part of the video on the Windows 2022 server and then create a local.ps1 file to run on fact collection from Ansible. I'll show you how to collect the version from two places which should cover off how to do this on your own server.

Let me know in the comments if it worked for you and what else you've added to your facts!

#ansible #windows #customfacts


Watch video How to Create Custom Windows Facts to Use in Ansible online without registration, duration hours minute second in high quality. This video was added by user LondonIAC / Dennis McCarthy / Automation Engineer 24 October 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 830 once and liked it 18 people.