dotfiles to ssh after downloading
This commit is contained in:
@@ -18,6 +18,19 @@
|
|||||||
update: true
|
update: true
|
||||||
become: false
|
become: false
|
||||||
|
|
||||||
|
- name: Restore dotfiles SSH origin
|
||||||
|
ansible.builtin.command:
|
||||||
|
argv:
|
||||||
|
- git
|
||||||
|
- -C
|
||||||
|
- "{{ dotfiles_dir }}"
|
||||||
|
- remote
|
||||||
|
- set-url
|
||||||
|
- origin
|
||||||
|
- "{{ dotfiles_ssh_repo }}"
|
||||||
|
become: false
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
- name: Install all dotfiles with GNU Stow
|
- name: Install all dotfiles with GNU Stow
|
||||||
ansible.builtin.shell: stow -R *
|
ansible.builtin.shell: stow -R *
|
||||||
args:
|
args:
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ user_name: "{{ lookup('env', 'USER') }}"
|
|||||||
user_home: "{{ lookup('env', 'HOME') }}"
|
user_home: "{{ lookup('env', 'HOME') }}"
|
||||||
dotfiles_dir: "{{ user_home }}/dotfiles"
|
dotfiles_dir: "{{ user_home }}/dotfiles"
|
||||||
dotfiles_repo: https://codeberg.org/bartal-lsn/dotfiles.git
|
dotfiles_repo: https://codeberg.org/bartal-lsn/dotfiles.git
|
||||||
|
dotfiles_ssh_repo: git@codeberg.org:bartal-lsn/dotfiles.git
|
||||||
|
|
||||||
system_timezone: Atlantic/Faroe
|
system_timezone: Atlantic/Faroe
|
||||||
system_locale: en_US.UTF-8
|
system_locale: en_US.UTF-8
|
||||||
|
|||||||
Reference in New Issue
Block a user