---
title: "Discussion on \"Gather Information About O.S Through Ansible_Facts\" | Hashnode"
description: "Discussion on \"Gather Information About O.S Through Ansible_Facts\". So You want to know the O.S name and version via Ansible\nWithout Wasting Around \nBEFORE YOU GO THROUGH THIS READ ABOUT ANSIBLE FACT\nCreate 2 Files by the following Command\necho \"package: httpd\" > RedHat-8.yml\necho \"package: apache2\" > Ubuntu-18.yml\nT..."
url: "https://hashnode.com/posts/gather-information-about-os-through-ansiblefacts/607c6ddeeb2bd30d2d227d47"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Gather Information About O.S Through Ansible\_Facts](https://ashutoshsingh.hashnode.dev/gather-information-about-os-through-ansiblefacts?utm_source=hashnode&utm_medium=feed)

So You want to know the O.S name and version via Ansible Without Wasting Around BEFORE YOU GO THROUGH THIS READ ABOUT ANSIBLE FACT Create 2 Files by the following Command echo "package: httpd" > RedHat-8.yml echo "package: apache2" > Ubuntu-18.yml T...

Apr 18, 2021 · 1 min read · ashutoshsingh.hashnode.dev  
Read the article

-   [#ansible](https://hashnode.com/tag/ansible)
-   [#web-servers](https://hashnode.com/tag/web-servers)
-   [#linux](https://hashnode.com/tag/linux)
-   [#automation](https://hashnode.com/tag/automation)

## Written by

[Ashutosh Singh](https://hashnode.com/@HiddenBlade)

@HiddenBlade

  
[View profile](https://hashnode.com/@HiddenBlade)

Tech-savvy

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
