Install know_hosts
This commit is contained in:
@@ -37,7 +37,7 @@
|
|||||||
- name: users | rene | install known_hosts
|
- name: users | rene | install known_hosts
|
||||||
copy:
|
copy:
|
||||||
dest: "/home/rene/.ssh/known_hosts"
|
dest: "/home/rene/.ssh/known_hosts"
|
||||||
src: "users/rene/ssh/know_hosts"
|
src: "users/know_hosts"
|
||||||
backup: True
|
backup: True
|
||||||
mode: '0600'
|
mode: '0600'
|
||||||
owner: 'rene'
|
owner: 'rene'
|
||||||
|
|||||||
@@ -24,6 +24,15 @@
|
|||||||
with_file:
|
with_file:
|
||||||
- public_keys/backup_ed25519.pub
|
- 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
|
- name: users | root | create script directories
|
||||||
file:
|
file:
|
||||||
path: "{{ root_home }}/scripts"
|
path: "{{ root_home }}/scripts"
|
||||||
|
|||||||
Reference in New Issue
Block a user