Hello All,

I am trying to read a file from a remote host and do some checks on its
content using the slurp module
<https://docs.ansible.com/ansible/latest/collections/ansible/builtin/slurp_module.html>.
However I want these checks to run only if the file exists. If the file is
not found I want to skip some of the following tasks.

However, it seems like the slurp module fails when the file I am looking
for is not found. Is there a way to handle the case of a file not being
there gracefully when using slurp?

Thank you very much
Best regards
---
Shabir

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAGK3r_gHYeG4_M1pqzNEX8pp182oUQaQgHYpxh7mtd_iuaekNw%40mail.gmail.com.

Reply via email to