diff --git a/roles/ssh_known_hosts/tasks/main.yml b/roles/ssh_known_hosts/tasks/main.yml deleted file mode 100644 index 31acc01..0000000 --- a/roles/ssh_known_hosts/tasks/main.yml +++ /dev/null @@ -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 }}" diff --git a/roles/ssh_known_hosts/templates/ssh_known_hosts.j2 b/roles/ssh_known_hosts/templates/ssh_known_hosts.j2 deleted file mode 100644 index 6019166..0000000 --- a/roles/ssh_known_hosts/templates/ssh_known_hosts.j2 +++ /dev/null @@ -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 %}