38 lines
		
	
	
	
		
			881 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
	
		
			881 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
# We could probably avoid rebooting in some cases, but those should never happen
 | 
						|
# in normal operation anyway. This way all setup is done before rebooting once.
 | 
						|
 | 
						|
- name: Add rules to rename network interfaces
 | 
						|
  template:
 | 
						|
    dest: /etc/udev/rules.d/10-network.rules
 | 
						|
    src: 10-network.rules.j2
 | 
						|
    mode: 0644
 | 
						|
  notify: reboot
 | 
						|
 | 
						|
- name: Set up interfaces
 | 
						|
  template:
 | 
						|
    dest: /etc/network/interfaces
 | 
						|
    src: interfaces.j2
 | 
						|
    mode: 0644
 | 
						|
  notify: reboot
 | 
						|
 | 
						|
- name: Configure SSH instance in management VRF
 | 
						|
  template:
 | 
						|
    dest: /etc/ssh/sshd_config.mgmt
 | 
						|
    src: sshd_config.mgmt.j2
 | 
						|
    mode: 0644
 | 
						|
  notify: reboot
 | 
						|
 | 
						|
- name: Set up a SSH instance in management VRF
 | 
						|
  copy:
 | 
						|
    dest: /etc/systemd/system/
 | 
						|
    src: sshd@mgmt.service
 | 
						|
    mode: 0644
 | 
						|
  notify: reboot
 | 
						|
 | 
						|
- name: Enable management SSH
 | 
						|
  service:
 | 
						|
    name: sshd@mgmt
 | 
						|
    enabled: yes
 | 
						|
  notify: reboot
 | 
						|
 | 
						|
- meta: flush_handlers
 |