123456789101112131415161718192021 |
- - name: 'Install dotfiles'
- git:
- repo: '{{ dotfiles_repo }}'
- dest: '{{ dotfiles_dest }}'
- recursive: 'yes'
- accept_hostkey: 'yes'
- force: 'yes'
- tags:
- - 'base'
- - 'dotfiles'
- - name: 'Enable sourcing of dotfiles'
- lineinfile:
- dest: '/etc/zsh/zshrc'
- regexp: 'source {{ dotfiles_dest }}'
- line: '[[ -f {{ dotfiles_dest }}/zsh/zshrc ]] && export LC_SSH_VARS={{ dotfiles_lcsshvars }} && source {{ dotfiles_dest }}/zsh/zshrc'
- tags:
- - 'base'
- - 'dotfiles'
- # vim: ft=yaml.ansible
|