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
|
# defaults file for common
|
||||||
|
|
||||||
|
# change login shell
|
||||||
|
usersetup_chsh: true
|
||||||
|
|
||||||
|
# override global gitconfig
|
||||||
|
usersetup_gitconfig: true
|
||||||
|
|
|
@ -22,12 +22,18 @@
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
with_items:
|
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/_gitignore_global', dest: '.gitignore_global' }
|
||||||
- { src: '{{ role_path }}/files/dotfiles/_tmux.conf', dest: '.tmux.conf' }
|
- { src: '{{ role_path }}/files/dotfiles/_tmux.conf', dest: '.tmux.conf' }
|
||||||
- { src: '{{ role_path }}/files/dotfiles/_vimrc', dest: '.vimrc' }
|
- { src: '{{ role_path }}/files/dotfiles/_vimrc', dest: '.vimrc' }
|
||||||
- { src: '{{ role_path }}/files/dotfiles/_zshrc', dest: '.zshrc' }
|
- { 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/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
|
- name: usersettings - Install vim plugins
|
||||||
git:
|
git:
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
name: "{{ ansible_user_id }}"
|
name: "{{ ansible_user_id }}"
|
||||||
shell: /bin/zsh
|
shell: /bin/zsh
|
||||||
when:
|
when:
|
||||||
- common_usersetup.stat.exists == false
|
- common_usersetup.stat.exists == false and usersetup_chsh == true
|
||||||
|
|
||||||
- name: usersetup - Create .vim directory
|
- name: usersetup - Create .vim directory
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
name: "{{ ansible_user_id }}"
|
name: "{{ ansible_user_id }}"
|
||||||
shell: /bin/zsh
|
shell: /bin/zsh
|
||||||
when:
|
when:
|
||||||
- common_usersetup.stat.exists == false
|
- common_usersetup.stat.exists == false and usersetup_chsh == true
|
||||||
|
|
||||||
- name: usersetup - Create .vim directory
|
- name: usersetup - Create .vim directory
|
||||||
file:
|
file:
|
||||||
|
|
Loading…
Reference in a new issue