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
					
				
					 1 changed files with 0 additions and 12 deletions
				
			
		|  | @ -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: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue