Skip to content

Instantly share code, notes, and snippets.

@kevenli
Last active January 26, 2021 02:39
Show Gist options
  • Save kevenli/f1c303598fe0a64e0971eb540fa727c6 to your computer and use it in GitHub Desktop.
Save kevenli/f1c303598fe0a64e0971eb540fa727c6 to your computer and use it in GitHub Desktop.
add python3 execuable path
# /etc/profile.d/python3.sh
PATH=$PATH:/usr/local/bin
# ansible task
- name: Add another bin dir to system-wide $PATH.
copy:
dest: /etc/profile.d/custom-path.sh
content: 'PATH=$PATH:{{ my_custom_path_var }}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment