dotfiles.yml 408 B

1234567
  1. - name: Install dotfiles
  2. git: repo={{ dotfiles_repo }} dest={{ dotfiles_dest }} recursive=yes accept_hostkey=yes force=yes
  3. when: with_dotfiles
  4. - name: Enable sourcing of dotfiles
  5. 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'
  6. when: with_dotfiles