ssh-certs hosts.
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 0s

This commit is contained in:
hogweed1
2026-05-22 01:31:22 +10:00
parent ce14f1ff0d
commit bdc0407715

View File

@@ -62,6 +62,20 @@
marker: "# {mark} ANSIBLE MANAGED HOST CERTIFICATE BLOCK #" marker: "# {mark} ANSIBLE MANAGED HOST CERTIFICATE BLOCK #"
notify: Restart SSH notify: Restart SSH
- name: Configure SSH HostKeys for Proxmox compatibility
blockinfile:
path: /etc/ssh/sshd_config # Или укажите путь к дроп-ину в sshd_config.d/, если используете их
block: |
# Coexistence with Proxmox internal clustering (Plain Keys fallback)
HostKey /etc/ssh/ssh_host_rsa_key
marker: "# {mark} ANSIBLE MANAGED HOST CERTIFICATE BLOCK #"
create: true
mode: '0600'
validate: /usr/sbin/sshd -t -f %s
when: "'proxmoxes' in group_names"
notify: Restart sshd
- name: Очистка временных файлов на Ansible-машине - name: Очистка временных файлов на Ansible-машине
delegate_to: localhost delegate_to: localhost
become: no become: no