Initial base playbooks
Signed-off-by: Nis Wechselberg <enbewe@enbewe.de>
This commit is contained in:
parent
9c51597396
commit
dd603044fc
11 changed files with 305 additions and 0 deletions
14
playbooks/known_hosts.yml
Normal file
14
playbooks/known_hosts.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
- name: 'Install SSH keys as known hosts'
|
||||
hosts: 'all'
|
||||
serial: 1
|
||||
gather_facts: false
|
||||
|
||||
tasks:
|
||||
- name: 'Register host key'
|
||||
delegate_to: 'localhost'
|
||||
throttle: 1
|
||||
when: 'ssh_ed25519'
|
||||
ansible.builtin.known_hosts:
|
||||
name: '{{ inventory_hostname }}'
|
||||
key: '{{ inventory_hostname }} ssh-ed25519 {{ ssh_ed25519 }}'
|
Loading…
Add table
Add a link
Reference in a new issue