* try to automatic install yadm and direnv if not presented on target system
This commit is contained in:
@ -1,6 +1,16 @@
|
|||||||
---
|
---
|
||||||
- hosts: [ 'debian10' ]
|
- hosts: [ 'debian10' ]
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: Install yadm
|
||||||
|
become_user: root
|
||||||
|
shell: |
|
||||||
|
command -v yadm || curl -fLo /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 -sfL /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: Clone dotfiles repo
|
- name: Clone dotfiles repo
|
||||||
shell: yadm clone --bootstrap https://vcs.wpstudio.ru/gitea/dotfiles.git
|
shell: yadm clone --bootstrap https://vcs.wpstudio.ru/gitea/dotfiles.git
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user