ansible/roles/sshd/tasks/certs.yml

36 lines
845 B
YAML

---
- name: ssh_host_ed25519_key-cert.pub
copy:
src: "host_files/ssh/{{ ansible_hostname }}/ssh_host_ed25519_key-cert.pub"
dest: "/etc/ssh/ssh_host_ed25519_key-cert.pub"
mode: '0644'
owner: root
- name: ssh_host_ed25519_key.pub
copy:
src: "host_files/ssh/{{ ansible_hostname }}/ssh_host_ed25519_key.pub"
dest: "/etc/ssh/ssh_host_ed25519_key.pub"
mode: '0644'
owner: root
- name: ssh_host_ed25519_key
copy:
src: "host_files/ssh/{{ ansible_hostname }}/ssh_host_ed25519_key"
dest: "/etc/ssh/ssh_host_ed25519_key"
mode: '0600'
owner: root
- name: copy user_ca.pub
copy:
src: user_ca.pub
dest: "/etc/ssh/user_ca.pub"
mode: '0644'
owner: root
- name: copy ssh_known_hosts
copy:
src: ssh_known_hosts
dest: "/etc/ssh/ssh_known_hosts"
mode: '0644'
owner: root