ansible.builtin.is_dir (v2.16.5) — test

does the path resolve to an existing directory

| "added in version" 2.5 of ansible.builtin"

Authors: Ansible Core

Install Ansible via pip

Install with pip install ansible-core==2.16.5

Description

Check if the provided path maps to an existing directory on the controller's filesystem (localhost).

Inputs

    
_input:
    description: A path.
    type: path

Outputs

_value:
  description: Returns V(True) if the path corresponds to an existing directory on
    the filesystem on the controller, V(False) if otherwise.
  type: boolean