Skip to content

Instantly share code, notes, and snippets.

@BrunIF
Created August 3, 2020 14:28
Show Gist options
  • Save BrunIF/8d6c9f8f3707dcd51239bd3f1d742f6b to your computer and use it in GitHub Desktop.
Save BrunIF/8d6c9f8f3707dcd51239bd3f1d742f6b to your computer and use it in GitHub Desktop.
Ansible get PATH from .zshrc
---
- hosts: localhost
tasks:
- shell: . $HOME/.zshrc && echo $PATH
args:
executable: /bin/zsh
register: path
- debug: msg="{{ path.stdout }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment