add switches to disable chsh and global gitconfig
This commit is contained in:
parent
34a2109051
commit
4ea271dbf0
|
@ -1,2 +1,8 @@
|
|||
---
|
||||
# defaults file for common
|
||||
|
||||
# change login shell
|
||||
usersetup_chsh: true
|
||||
|
||||
# override global gitconfig
|
||||
usersetup_gitconfig: true
|
||||
|
|
|
@ -22,12 +22,18 @@
|
|||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
with_items:
|
||||
- { src: '{{ role_path }}/files/dotfiles/_gitconfig', dest: '.gitconfig' }
|
||||
- { 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' }
|
||||
- name: usersettings - Set global gitconfig
|
||||
copy:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
with_items:
|
||||
- { src: '{{ role_path }}/files/dotfiles/_gitconfig', dest: '.gitconfig' }
|
||||
when: usersetup_gitconfig == true
|
||||
|
||||
- name: usersettings - Install vim plugins
|
||||
git:
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
name: "{{ ansible_user_id }}"
|
||||
shell: /bin/zsh
|
||||
when:
|
||||
- common_usersetup.stat.exists == false
|
||||
- common_usersetup.stat.exists == false and usersetup_chsh == true
|
||||
|
||||
- name: usersetup - Create .vim directory
|
||||
file:
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
name: "{{ ansible_user_id }}"
|
||||
shell: /bin/zsh
|
||||
when:
|
||||
- common_usersetup.stat.exists == false
|
||||
- common_usersetup.stat.exists == false and usersetup_chsh == true
|
||||
|
||||
- name: usersetup - Create .vim directory
|
||||
file:
|
||||
|
|
Loading…
Reference in a new issue