Ansible Module stat
Jump to navigation
Jump to search
External
Internal
Overview
Retrieve file or file system status.
- name: "Check if a directory exists"
stat:
path: "{{ some_path }}"
register: some_dir
Retrieve file or file system status.
- name: "Check if a directory exists"
stat:
path: "{{ some_path }}"
register: some_dir