Ansible Module stat

From NovaOrdis Knowledge Base
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