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.

30 lines
1.0 KiB

  1. ---
  2. - hosts: [ 'debian10' ]
  3. tasks:
  4. - name: Install yadm
  5. become_user: root
  6. shell: |
  7. command -v yadm || curl -sfLo /usr/local/bin/yadm https://github.com/TheLocehiliosan/yadm/raw/master/yadm && chmod a+x /usr/local/bin/yadm
  8. - name: Install direnv
  9. become_user: root
  10. shell: |
  11. command -v direnv || curl -sfLo /usr/local/bin/direnv https://github.com/direnv/direnv/releases/download/v2.35.0/direnv.linux-amd64 && chmod a+x /usr/local/bin/direnv
  12. - name: Install Starship
  13. become_user: root
  14. shell: |
  15. command -v starship || curl -sS https://starship.rs/install.sh | sh -s -- -f
  16. - name: Clone dotfiles repo
  17. shell: |
  18. yadm clone --bootstrap https://vcs.wpstudio.ru/gitea/dotfiles.git && yadm checkout ./
  19. # For manual change: sed -i 's/#/\\$/g' ${HOME}/.config/starship.toml
  20. - name: 'Change character for non-root user'
  21. become: false
  22. become_user: root
  23. shell: |
  24. sed -i 's/#/\\$/g' ${HOME}/.config/starship.toml
  25. args:
  26. executable: /bin/bash