Ansible Module stat
Jump to navigation
Jump to search
External
Internal
Overview
Retrieves facts for a file similar to the Linux/Unix "stat" command.
- name: "Check if a directory exists"
stat:
path: "{{ some_path }}"
register: some_dir