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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | PATH | Environment variable name | |
| elements | []string | yes | Path elements to add or remove | |
| state | string | present | Desired state: present or absent | |
| scope | string | machine | Environment scope: machine or user |
Example
yaml
- name: Ensure an executable search directory
ansible.windows.win_path:
scope: user
elements: [C:\Tools]