logo-MindMajix
A
Anusha V

Posted on 24th July 2024|24 views

0
votes

Ansible Delete File

How to delete a file in Ansible

1 answers
Answers
P
Harshel Mike

Posted on 24th July 2024| views

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
Name
Course *
Email *
Phone Number