PARALLAX

win_path

Manage ordered Windows path elements

Collection: ansible.windows

Full Name: parallax.windows.win_path

Aliases: ansible.windows.win_path, win_path

Synopsis

Manage ordered Windows path elements

Parameters

NameTypeRequiredDefaultDescription
namestringPATHEnvironment variable name
elements[]stringyesPath elements to add or remove
statestringpresentDesired state: present or absent
scopestringmachineEnvironment scope: machine or user

Example

yaml
- name: Ensure an executable search directory
  ansible.windows.win_path:
    scope: user
    elements: [C:\Tools]
Search
    ↑ ↓ move↵ openesc close