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 | 60d15b66150755c6b9ec415e45cb459fd3e646b8 (patch) | |
| tree | 8b4fac4ac517df97f0e27f62c23bb2318fe2cfe9 | |
| parent | 7cc8cd5bf2ae659946631323d6856940f6c7ff57 (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 }}" |
