ssh-certs hosts.
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 0s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 0s
This commit is contained in:
@@ -53,6 +53,24 @@
|
||||
group: root
|
||||
mode: '0640' # Сертификат может быть 0640
|
||||
|
||||
- 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
|
||||
|
||||
# Исключение для локального кластерного трафика Proxmox
|
||||
Match User root
|
||||
PermitRootLogin yes
|
||||
PubkeyAuthentication yes
|
||||
marker: "# {mark} ANSIBLE MANAGED HOST RSA KEY BLOCK #"
|
||||
create: true
|
||||
mode: '0600'
|
||||
validate: /usr/sbin/sshd -t -f %s
|
||||
when: "'proxmoxes' in group_names"
|
||||
notify: Restart SSH
|
||||
|
||||
- name: Настройка sshd_config для отдачи Хост-сертификата клиентам
|
||||
blockinfile:
|
||||
path: /etc/ssh/sshd_config
|
||||
@@ -62,19 +80,6 @@
|
||||
marker: "# {mark} ANSIBLE MANAGED HOST CERTIFICATE BLOCK #"
|
||||
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 RSA KEY BLOCK #"
|
||||
create: true
|
||||
mode: '0600'
|
||||
validate: /usr/sbin/sshd -t -f %s
|
||||
when: "'proxmoxes' in group_names"
|
||||
notify: Restart SSH
|
||||
|
||||
|
||||
- name: Очистка временных файлов на Ansible-машине
|
||||
delegate_to: localhost
|
||||
|
||||
Reference in New Issue
Block a user