diff --git a/tasks/dotfiles.yml b/tasks/dotfiles.yml index 0193f67..589ca68 100644 --- a/tasks/dotfiles.yml +++ b/tasks/dotfiles.yml @@ -18,6 +18,19 @@ update: true 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 ansible.builtin.shell: stow -R * args: diff --git a/vars.yml b/vars.yml index 21de177..6754b39 100644 --- a/vars.yml +++ b/vars.yml @@ -3,6 +3,7 @@ user_name: "{{ lookup('env', 'USER') }}" user_home: "{{ lookup('env', 'HOME') }}" dotfiles_dir: "{{ user_home }}/dotfiles" dotfiles_repo: https://codeberg.org/bartal-lsn/dotfiles.git +dotfiles_ssh_repo: git@codeberg.org:bartal-lsn/dotfiles.git system_timezone: Atlantic/Faroe system_locale: en_US.UTF-8