[CODE] essentials: install pip, customizable zshrc

This commit is contained in:
Jannik Beyerstedt 2020-03-19 18:17:57 +01:00 committed by Jannik Beyerstedt
parent 5fb94b33b3
commit 44558263b0
10 changed files with 153 additions and 7 deletions

View file

@ -16,6 +16,27 @@
when:
- fzf_git.after != fzf_git.before
- name: usersettings - Install pip virtualenvwrapper
block:
- name: usersettings - Install pip virtualenvwrapper (Debian)
become: yes
pip:
name: virtualenvwrapper
extra_args: --system
when: (override_os_family is defined) | ternary(override_os_family,ansible_os_family) == "Debian"
- name: usersettings - Install pip virtualenvwrapper (macOS)
environment:
PATH: "/usr/local/bin:{{ ansible_env.PATH }}"
pip:
name: virtualenvwrapper
when: (override_os_family is defined) | ternary(override_os_family,ansible_os_family) == "Darwin"
- name: usersettings - Install pip virtualenvwrapper (CentOS, ArchLinux)
become: yes
pip:
name: virtualenvwrapper
when: (override_os_family is defined) | ternary(override_os_family,ansible_os_family) == "Centos" or
(override_os_family is defined) | ternary(override_os_family,ansible_os_family) == "Archlinux"
when: usersetup_virtualenvwrapper
- name: usersettings - Copy dotfiles
copy:
src: "{{ item.src }}"
@ -24,9 +45,13 @@
- { src: "{{ role_path }}/files/dotfiles/_gitignore_global", dest: ".gitignore_global" }
- { src: "{{ role_path }}/files/dotfiles/_tmux.conf", dest: ".tmux.conf" }
- { src: "{{ role_path }}/files/dotfiles/_vimrc", dest: ".vimrc" }
- { src: "{{ role_path }}/files/dotfiles/_zshrc", dest: ".zshrc" }
- { src: "{{ role_path }}/files/dotfiles/_oh-my-zsh/custom/themes/agnoster.zsh-theme", dest: ".oh-my-zsh/custom/themes/agnoster.zsh-theme" }
- { src: "{{ role_path }}/files/dotfiles/_oh-my-zsh/custom/themes/jtbx.zsh-theme", dest: ".oh-my-zsh/custom/themes/jtbx.zsh-theme" }
- name: usersettings - Set zshrc
template:
src: "{{ role_path }}/templates/_zshrc.j2"
dest: "{{ ansible_user_dir }}/.zshrc"
when: usersetup_gitconfig == true
- name: usersettings - Set global gitconfig
template:
src: "{{ role_path }}/templates/_gitconfig.j2"