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
30 lines
1.0 KiB
---
|
|
- hosts: [ 'debian10' ]
|
|
tasks:
|
|
- name: Install yadm
|
|
become_user: root
|
|
shell: |
|
|
command -v yadm || curl -sfLo /usr/local/bin/yadm https://github.com/TheLocehiliosan/yadm/raw/master/yadm && chmod a+x /usr/local/bin/yadm
|
|
|
|
- name: Install direnv
|
|
become_user: root
|
|
shell: |
|
|
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
|
|
|
|
- name: Install Starship
|
|
become_user: root
|
|
shell: |
|
|
command -v starship || curl -sS https://starship.rs/install.sh | sh -s -- -f
|
|
|
|
- name: Clone dotfiles repo
|
|
shell: |
|
|
yadm clone --bootstrap https://vcs.wpstudio.ru/gitea/dotfiles.git && yadm checkout ./
|
|
|
|
# For manual change: sed -i 's/#/\\$/g' ${HOME}/.config/starship.toml
|
|
- name: 'Change character for non-root user'
|
|
become: false
|
|
become_user: root
|
|
shell: |
|
|
sed -i 's/#/\\$/g' ${HOME}/.config/starship.toml
|
|
args:
|
|
executable: /bin/bash
|