A
Anusha V

Posted on 5th March 2024|20 views

0
votes

Ansible Delete File

How to delete a file in Ansible

Answers
P
Harshel Mike

Posted on 5th March 2024

In Ansible, we can delete the file through the following code:

-name: Remove file

file:

Path: c/mindmajix.txt

state:absent

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos