Add pyenv to FreeBSD.

This commit is contained in:
Tom Alexander 2023-03-06 15:44:33 -05:00
parent 32cf355a0b
commit 85e79844b7
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
4 changed files with 19 additions and 5 deletions

View File

@ -0,0 +1,3 @@
export PYENV_ROOT=$(pyenv root)
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"

View File

@ -1,3 +1,9 @@
- name: Install packages
package:
name:
- pyenv
state: present
- import_tasks: tasks/freebsd.yaml
when: 'os_flavor == "freebsd"'

View File

@ -1,5 +0,0 @@
- name: Install packages
package:
name:
- pyenv
state: present

View File

@ -22,6 +22,16 @@
# - src: foo.conf
# dest: .config/foo/foo.conf
- name: Configure zshrc additional imports
copy:
src: "files/zshrc_{{ item }}"
dest: "{{ account_homedir.stdout }}/.config/ansible_deploy/zshrc/{{ item }}.zsh"
mode: 0600
owner: "{{ account_name.stdout }}"
group: "{{ group_name.stdout }}"
loop:
- pyenv
- import_tasks: tasks/peruser_freebsd.yaml
when: 'os_flavor == "freebsd"'