proxmox-backup: don’t modify config for default SSH instance

It is disabled anyway, so trying to reload it barfs. Worry about
deduplicating roles whenever.
This commit is contained in:
Timotej Lazar 2025-01-23 13:10:50 +01:00
parent 04bfcb03fa
commit 0d607fe2a4

View file

@ -58,18 +58,6 @@
mode: 0644
notify: reload interfaces
- name: Disable SSH password authentication
lineinfile:
path: /etc/ssh/sshd_config
regexp: '^#?{{ item.key }}'
line: '{{ item.key }} {{ item.value }}'
loop:
- key: PasswordAuthentication
value: 'no'
- key: PermitRootLogin
value: 'prohibit-password'
notify: reload sshd
- name: Run SSH instance in management VRF
when: interfaces | selectattr('vrf') | selectattr('vrf.name', '==', 'mgmt')
block: