Re: [ansible-project] Handling "file not found" for the slurp module

2022-09-27 Thread Shabir Abdul Samdh
Yup! That works. Thank you. On Monday, 26 September 2022 at 23:45:48 UTC-4 dnmv...@gmail.com wrote: > Add a stat task first and use the result to conditionally run the slurp > task > > On Tue, 27 Sep 2022 at 05:10, Shabir Abdul Samdh > wrote: > >> Hello All, >>

[ansible-project] Handling "file not found" for the slurp module

2022-09-26 Thread Shabir Abdul Samdh
Hello All, I am trying to read a file from a remote host and do some checks on its content using the slurp module . However I want these checks to run only if the file exists. If the file is not found I want to