tasks_clone_dotfiles.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. ---
  2. - name: "00: Set Dotfile Repo"
  3. ansible.builtin.set_fact:
  4. dotfile_repo: "git@git.aetherial.dev:aeth/dotfiles.git"
  5. - name: "00: Clone the dotfiles"
  6. become: True
  7. become_user: "{{ system_user }}"
  8. ansible.builtin.git:
  9. repo: "{{ dotfile_repo }}"
  10. dest: "/home/{{ system_user }}/.config/dotfiles"
  11. version: "master"
  12. - name: "05: Set fact for dotfile home"
  13. ansible.builtin.set_fact:
  14. dotfiles: "/home/{{ system_user }}/.config/dotfiles"
  15. - name: "10: Move them to their appropriate locations"
  16. ansible.builtin.copy:
  17. src: "{{ dotfiles }}/zshrc"
  18. dest: "/home/{{ system_user }}/.zshrc"
  19. remote_src: "yes"
  20. backup: True
  21. - name: "20: Move alacritty config"
  22. ansible.builtin.copy:
  23. src: "{{ dotfiles }}/alacritty.yml"
  24. remote_src: "yes"
  25. dest: "/home/{{ system_user }}/.config/alacritty/"
  26. backup: True
  27. - name: "30: Move sway config"
  28. ansible.builtin.copy:
  29. src: "{{ dotfiles }}/sway/config"
  30. remote_src: "yes"
  31. dest: "/home/{{ system_user }}/.config/sway/"
  32. backup: True
  33. - name: "40: move vimrc"
  34. ansible.builtin.copy:
  35. src: "{{ dotfiles }}/vimrc"
  36. remote_src: "yes"
  37. dest: "/home/{{ system_user }}/.vimrc"
  38. backup: True
  39. - name: "60: Move environment file into etc"
  40. become: True
  41. ansible.builtin.copy:
  42. remote_src: "yes"
  43. src: "{{ dotfiles }}/environment"
  44. dest: "/etc/environment"
  45. backup: True