Add pyenv to FreeBSD.
This commit is contained in:
parent
32cf355a0b
commit
85e79844b7
3
ansible/roles/pyenv/files/zshrc_pyenv
Normal file
3
ansible/roles/pyenv/files/zshrc_pyenv
Normal file
@ -0,0 +1,3 @@
|
||||
export PYENV_ROOT=$(pyenv root)
|
||||
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
|
||||
eval "$(pyenv init -)"
|
@ -1,3 +1,9 @@
|
||||
- name: Install packages
|
||||
package:
|
||||
name:
|
||||
- pyenv
|
||||
state: present
|
||||
|
||||
- import_tasks: tasks/freebsd.yaml
|
||||
when: 'os_flavor == "freebsd"'
|
||||
|
||||
|
@ -1,5 +0,0 @@
|
||||
- name: Install packages
|
||||
package:
|
||||
name:
|
||||
- pyenv
|
||||
state: present
|
@ -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"'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user