[unattended] fixup
							parent
							
								
									d13f1107dd
								
							
						
					
					
						commit
						cfc780d90f
					
				| 
						 | 
				
			
			@ -10,12 +10,6 @@ loc_unattended:
 | 
			
		|||
loc_needrestart:
 | 
			
		||||
  override: []
 | 
			
		||||
 | 
			
		||||
loc_unattended:
 | 
			
		||||
  reboot: true
 | 
			
		||||
 | 
			
		||||
loc_needrestart:
 | 
			
		||||
  override: []
 | 
			
		||||
 | 
			
		||||
loc_nfs_mount:
 | 
			
		||||
  mounts:
 | 
			
		||||
    - ip: "{{ query('ldap', 'ip4', 'tealc', 'san') }}"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,9 +4,13 @@
 | 
			
		|||
  vars:
 | 
			
		||||
    root: "{{ glob_root | default({}) | combine(loc_root | default({})) }}"
 | 
			
		||||
    ntp_client: "{{ glob_ntp_client | combine(loc_ntp_client | default({})) }}"
 | 
			
		||||
    needrestart: "{{ glob_needrestart | default({}) | combine(loc_needrestart | default({})) }}"
 | 
			
		||||
    unattended: "{{ glob_unattended | default({}) | combine(loc_unattended | default({})) }}"
 | 
			
		||||
  roles:
 | 
			
		||||
    - root
 | 
			
		||||
    - common-tools
 | 
			
		||||
    - sudo
 | 
			
		||||
    - ntp-client
 | 
			
		||||
    - root-config
 | 
			
		||||
    - needrestart
 | 
			
		||||
    - unattended-upgrades
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -87,7 +87,7 @@ Unattended-Upgrade::Remove-Unused-Dependencies "true";
 | 
			
		|||
 | 
			
		||||
// Automatically reboot *WITHOUT CONFIRMATION* if
 | 
			
		||||
//  the file /var/run/reboot-required is found after the upgrade
 | 
			
		||||
Unattended-Upgrade::Automatic-Reboot "{{ unattended.automatic_reboot | default(false) | ternary("true", "false") }}";
 | 
			
		||||
Unattended-Upgrade::Automatic-Reboot "{{ unattended.reboot | default(false) | ternary("true", "false") }}";
 | 
			
		||||
 | 
			
		||||
// Automatically reboot even if there are users currently logged in
 | 
			
		||||
// when Unattended-Upgrade::Automatic-Reboot is set to true
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue