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:
parent
04bfcb03fa
commit
0d607fe2a4
|
@ -58,18 +58,6 @@
|
||||||
mode: 0644
|
mode: 0644
|
||||||
notify: reload interfaces
|
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
|
- name: Run SSH instance in management VRF
|
||||||
when: interfaces | selectattr('vrf') | selectattr('vrf.name', '==', 'mgmt')
|
when: interfaces | selectattr('vrf') | selectattr('vrf.name', '==', 'mgmt')
|
||||||
block:
|
block:
|
||||||
|
|
Loading…
Reference in a new issue