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

does the path exist, no follow

| "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 symlink on the controller's filesystem (localhost).

Does not follow symlinks, so it only verifies that the link itself exists.

Inputs

    
_input:
    description: A path.
    type: path

Outputs

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