ansible.builtin.directory (v2.15.10) — 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.15.10

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 C(True) if the path corresponds to an existing directory on
    the filesystem on the controller, c(False) if otherwise.
  type: boolean