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