diff options
| author | Ahmed AbdelHalim <[email protected]> | 2025-11-08 23:33:38 +0100 |
|---|---|---|
| committer | Ahmed AbdelHalim <[email protected]> | 2025-11-09 01:47:00 +0100 |
| commit | 5941dec60fa53755fce6164406f7a6829501685d (patch) | |
| tree | 8b4fac4ac517df97f0e27f62c23bb2318fe2cfe9 | |
| parent | 82b37cfd12bb37132a19bf95679ae352fa2593a4 (diff) | |
Fix git clone by adding ssh keys to known_hosts
| -rw-r--r-- | roles/dotfiles/tasks/main.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/dotfiles/tasks/main.yml b/roles/dotfiles/tasks/main.yml index 51b2e817..b36c1e01 100644 --- a/roles/dotfiles/tasks/main.yml +++ b/roles/dotfiles/tasks/main.yml @@ -1,4 +1,11 @@ --- +- name: "Add sr.ht to known_hosts" + ansible.builtin.known_hosts: + name: "git.sr.ht" + key: "git.sr.ht ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMZvRd4EtM7R+IHVMWmDkVU3VLQTSwQDSAvW0t2Tkj60" + path: "{{ ansible_env.HOME }}/.ssh/known_hosts" + state: present + - name: "Clone dotfiles git repo" ansible.builtin.git: repo: "{{ dotfiles_repo_url }}" |
