dotfiles.yml 521 B

123456789101112131415161718192021
  1. - name: 'Install dotfiles'
  2. git:
  3. repo: '{{ dotfiles_repo }}'
  4. dest: '{{ dotfiles_dest }}'
  5. recursive: 'yes'
  6. accept_hostkey: 'yes'
  7. force: 'yes'
  8. tags:
  9. - 'base'
  10. - 'dotfiles'
  11. - name: 'Enable sourcing of dotfiles'
  12. lineinfile:
  13. dest: '/etc/zsh/zshrc'
  14. regexp: 'source {{ dotfiles_dest }}'
  15. line: '[[ -f {{ dotfiles_dest }}/zsh/zshrc ]] && export LC_SSH_VARS={{ dotfiles_lcsshvars }} && source {{ dotfiles_dest }}/zsh/zshrc'
  16. tags:
  17. - 'base'
  18. - 'dotfiles'
  19. # vim: ft=yaml.ansible