ssh_known_hosts: Move under ansible-software repo

This commit is contained in:
Timo Makinen 2024-11-27 15:18:44 +00:00
parent 773dff1aa9
commit 8c042d5ba8
2 changed files with 0 additions and 13 deletions

View file

@ -1,8 +0,0 @@
---
- name: Create SSH known_hosts
ansible.builtin.template:
dest: /etc/ssh/ssh_known_hosts
src: ssh_known_hosts.j2
mode: "0644"
owner: root
group: "{{ ansible_wheel }}"

View file

@ -1,5 +0,0 @@
{% set keys = lookup('fileglob', '/srv/sshca/ca/*.pub', wantlist=True) %}
{% for key in keys %}
{% set data = lookup('ansible.builtin.file', key) | split() %}
@cert-authority *.foo.sh {{ data[0:2] | join(' ') }}
{% endfor %}