Created
August 3, 2020 14:28
-
-
Save BrunIF/8d6c9f8f3707dcd51239bd3f1d742f6b to your computer and use it in GitHub Desktop.
Ansible get PATH from .zshrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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