---
title: "Discussion on \"How to delete Ansible host entries from hosts file using Ansible\" | Hashnode"
description: "Discussion on \"How to delete Ansible host entries from hosts file using Ansible\". In #Ansible we run an #Ansible play against a target hosts group, the #Ansible play will be executed on each remote host that is part of that particular target group.\nLets say we want to pass the host details dynamically to host file and every time w..."
url: "https://hashnode.com/posts/how-to-delete-ansible-host-entries-from-hosts-file-using-ansible/6532b12144380760bcd974b8"
---

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

Discussion

# [How to delete Ansible host entries from hosts file using Ansible](https://mahiratechnology.com//how-to-delete-ansible-host-entries-from-hosts-file-using-ansible?utm_source=hashnode&utm_medium=feed)

In #Ansible we run an #Ansible play against a target hosts group, the #Ansible play will be executed on each remote host that is part of that particular target group. Lets say we want to pass the host details dynamically to host file and every time w...

Oct 20, 2023 · 1 min read · mahiratechnology.com  
Updated Feb 4, 2024  
Read the article

-   [#ansible](https://hashnode.com/tag/ansible)
-   [#hosting](https://hashnode.com/tag/hosting)
-   [#host](https://hashnode.com/tag/host)
-   [#ansible-playbook](https://hashnode.com/tag/ansible-playbook)
-   [#infrastructure](https://hashnode.com/tag/infrastructure)
-   [#targeting](https://hashnode.com/tag/targeting)

## Written by

[Mahira Technology Private Limited](https://hashnode.com/@mahiratechnology)

@mahiratechnology · Pune, India

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

Innovate. Transform. Thrive.

A leading tech consulting firm specializing in innovative solutions. Experts in cloud, DevOps, automation, data analytics &amp; more. Trusted technology partner.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
