fix: don't fill .ssh/known_hosts
with copies of the same key
This commit is contained in:
parent
37beeb781f
commit
6cfbdaf9b3
1 changed files with 1 additions and 2 deletions
|
@ -466,8 +466,7 @@
|
||||||
check_mode: true
|
check_mode: true
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /home/vagrant/.ssh/known_hosts
|
path: /home/vagrant/.ssh/known_hosts
|
||||||
line: "^{{ chezmoi_source | urlsplit( 'hostname' ) }} "
|
regexp: "^{{ chezmoi_source | urlsplit( 'hostname' ) }} "
|
||||||
regex: true
|
|
||||||
state: absent
|
state: absent
|
||||||
register: ssh_key_present
|
register: ssh_key_present
|
||||||
- name: Add SSH key for chezmoi's Git repo
|
- name: Add SSH key for chezmoi's Git repo
|
||||||
|
|
Loading…
Reference in a new issue