You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.0 KiB

  1. ---
  2. - name: Configure yadm, Yet Another Dotfiles Manager
  3. collections: [ 'debops.debops', 'debops.roles01',
  4. 'debops.roles02', 'debops.roles03' ]
  5. hosts: [ 'debian10' ]
  6. become: True
  7. environment: '{{ inventory__environment | d({})
  8. | combine(inventory__group_environment | d({}))
  9. | combine(inventory__host_environment | d({})) }}'
  10. vars:
  11. yadm__enabled: True
  12. yadm__dotfiles_enabled: True
  13. yadm__upstream_enabled: True
  14. yadm__upstream_version: '2.5.0'
  15. # That be used in yadm.fact.j2 - python script for resolving ansible.local.yadm.dotfile git repo
  16. yadm__dotfiles_host: vcs.wpstudio.ru
  17. yadm__dotfiles_owner: gitea
  18. yadm__default_dotfiles:
  19. - name: 'gitea'
  20. git: 'https://vcs.wpstudio.ru/gitea/dotfiles.git'
  21. yadm__packages:
  22. - curl
  23. - git
  24. - ncdu
  25. - fontconfig
  26. - vim
  27. - direnv
  28. post_tasks:
  29. - name: Starship
  30. shell: |
  31. curl -sS https://starship.rs/install.sh | sh -s -- -f
  32. - name: Nerd Font
  33. shell: |
  34. download_font () {
  35. url="https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/SourceCodePro/Regular/complete/${1// /%20}"
  36. path="/usr/share/fonts/$1"
  37. curl -s -o "$path" "$url"
  38. }
  39. install_fonts () {
  40. download_font "Sauce Code Pro Nerd Font Complete.ttf"
  41. fc-cache -fv > /dev/null
  42. }
  43. install_fonts
  44. args:
  45. executable: /bin/bash
  46. - name: Xsel for working clipboard copy with X11 forwarding (use SSH -Y)
  47. shell: apt install -yy xsel
  48. roles:
  49. - role: keyring
  50. tags: [ 'role::keyring', 'skip::keyring', 'role::yadm' ]
  51. keyring__dependent_gpg_keys:
  52. - '{{ yadm__keyring__dependent_gpg_keys }}'
  53. - role: apt_preferences
  54. tags: [ 'role::apt_preferences', 'skip::apt_preferences' ]
  55. apt_preferences__dependent_list:
  56. - '{{ yadm__apt_preferences__dependent_list }}'
  57. - role: yadm
  58. tags: [ 'role::yadm', 'skip::yadm' ]