Install know_hosts

This commit is contained in:
2022-02-20 01:16:36 +01:00
parent 0bdd959ec5
commit 180ef572c8
3 changed files with 10 additions and 1 deletions

View File

@@ -37,7 +37,7 @@
- name: users | rene | install known_hosts
copy:
dest: "/home/rene/.ssh/known_hosts"
src: "users/rene/ssh/know_hosts"
src: "users/know_hosts"
backup: True
mode: '0600'
owner: 'rene'

View File

@@ -24,6 +24,15 @@
with_file:
- public_keys/backup_ed25519.pub
- name: users | root | install known_hosts
copy:
dest: "/home/root/.ssh/known_hosts"
src: "users/know_hosts"
backup: True
mode: '0600'
owner: 'root'
group: 'root'
- name: users | root | create script directories
file:
path: "{{ root_home }}/scripts"