Hi!
I'm running a simple ansible playbook which performs a task depending if a file exists or not.
My playbook looks like this:
tasks:
- name: Check file
stat:
path: /opt/local/dir/foo/dir2/dir3/
register: file_data1
- name: Reports existing folder...