chrisjsewell.conda.expandpath (0.0.9) — module

Expands `~` and environmental variables for a path

Authors: Chris Sewell (@chrisjsewell)

Install collection

Install with ansible-galaxy collection install chrisjsewell.conda:==0.0.9


Add to requirements.yml

  collections:
    - name: chrisjsewell.conda
      version: 0.0.9

Description

Expands `~` and environmental variables for a path

Unlike the jinja filters, this expands based on the remote user/environment

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Expand the remote path
  chrisjsewell.conda.expandpath:
    path: ~/test
  register: result
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: print the expanded path
  debug:
    var: result.path

Inputs

    
path:
    description: The path to expand
    required: true
    type: path

Outputs

path:
  description: The expanded path
  returned: successful == True
  type: str