tasks_clone_dotfiles.yml 1.3 KB

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