Ansible Module stat

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