From 6cfbdaf9b3e6c9a2caad50e2db32472b89b293f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20BENO=C3=8ET?= Date: Sun, 29 Dec 2024 20:55:05 +0100 Subject: [PATCH] fix: don't fill `.ssh/known_hosts` with copies of the same key --- ansible/provision.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ansible/provision.yml b/ansible/provision.yml index 73faf10..a6523aa 100644 --- a/ansible/provision.yml +++ b/ansible/provision.yml @@ -466,8 +466,7 @@ check_mode: true ansible.builtin.lineinfile: path: /home/vagrant/.ssh/known_hosts - line: "^{{ chezmoi_source | urlsplit( 'hostname' ) }} " - regex: true + regexp: "^{{ chezmoi_source | urlsplit( 'hostname' ) }} " state: absent register: ssh_key_present - name: Add SSH key for chezmoi's Git repo