remove update mechanism for other distributions
This commit is contained in:
		
							
								
								
									
										14
									
								
								update.yml
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								update.yml
									
									
									
									
									
								
							| @@ -17,21 +17,9 @@ | ||||
|       ignore_errors: true | ||||
|       when: ansible_os_family == "RedHat" | ||||
|      | ||||
|     - name: Check if reboot required (Debian/Ubuntu) | ||||
|       stat: | ||||
|         path: /var/run/reboot-required | ||||
|       register: reboot_required_file | ||||
|       when: ansible_os_family != "RedHat" | ||||
|      | ||||
|     - name: Reboot if required (RedHat/CentOS) | ||||
|       reboot: | ||||
|       when:  | ||||
|         - ansible_os_family == "RedHat" | ||||
|         - needs_restarting_output.rc == 1 | ||||
|         - needs_restarting_output is defined | ||||
|      | ||||
|     - name: Reboot if required (Debian/Ubuntu) | ||||
|       reboot: | ||||
|       when:  | ||||
|         - ansible_os_family != "RedHat" | ||||
|         - reboot_required_file.stat.exists == true | ||||
|         - needs_restarting_output is defined | ||||
		Reference in New Issue
	
	Block a user