ansible/roles/sshd/tasks/certs.yml

36 lines
845 B
YAML
Raw Normal View History

2022-09-04 17:25:14 +02:00
---
2022-09-04 16:12:56 +02:00
- name: ssh_host_ed25519_key-cert.pub
2022-09-02 10:12:36 +02:00
copy:
2022-09-06 10:12:25 +02:00
src: "host_files/ssh/{{ ansible_hostname }}/ssh_host_ed25519_key-cert.pub"
2022-09-04 16:12:56 +02:00
dest: "/etc/ssh/ssh_host_ed25519_key-cert.pub"
2022-09-02 10:12:36 +02:00
mode: '0644'
owner: root
2022-09-04 16:12:56 +02:00
- name: ssh_host_ed25519_key.pub
2022-09-02 10:12:36 +02:00
copy:
2022-09-06 10:12:25 +02:00
src: "host_files/ssh/{{ ansible_hostname }}/ssh_host_ed25519_key.pub"
2022-09-04 16:12:56 +02:00
dest: "/etc/ssh/ssh_host_ed25519_key.pub"
2022-09-02 10:12:36 +02:00
mode: '0644'
owner: root
2022-09-04 16:12:56 +02:00
- name: ssh_host_ed25519_key
2022-09-02 10:12:36 +02:00
copy:
2022-09-06 10:12:25 +02:00
src: "host_files/ssh/{{ ansible_hostname }}/ssh_host_ed25519_key"
2022-09-04 16:12:56 +02:00
dest: "/etc/ssh/ssh_host_ed25519_key"
2022-09-02 10:12:36 +02:00
mode: '0600'
owner: root
2022-09-02 17:01:23 +02:00
- name: copy user_ca.pub
copy:
src: user_ca.pub
dest: "/etc/ssh/user_ca.pub"
mode: '0644'
owner: root
2022-09-04 16:19:45 +02:00
- name: copy ssh_known_hosts
copy:
src: ssh_known_hosts
dest: "/etc/ssh/ssh_known_hosts"
mode: '0644'
owner: root