mirror of
				https://github.com/geerlingguy/ansible-role-kubernetes.git
				synced 2025-11-01 01:19:25 +01:00 
			
		
		
		
	Reload kubelet unit file if config is changed.
This commit is contained in:
		
							parent
							
								
									c287258b04
								
							
						
					
					
						commit
						9379018d86
					
				@ -22,7 +22,14 @@
 | 
			
		||||
    regexp: 'Environment="KUBELET_EXTRA_ARGS='
 | 
			
		||||
    insertafter: '^Environment='
 | 
			
		||||
    state: present
 | 
			
		||||
  notify: restart kubelet
 | 
			
		||||
  register: kubelet_unit_file
 | 
			
		||||
 | 
			
		||||
- name: Reload systemd unit if args were changed.
 | 
			
		||||
  systemd:
 | 
			
		||||
    state: restarted
 | 
			
		||||
    daemon_reload: yes
 | 
			
		||||
    name: kubelet
 | 
			
		||||
  when: kubelet_unit_file is changed
 | 
			
		||||
 | 
			
		||||
- name: Ensure kubelet is started and enabled at boot.
 | 
			
		||||
  service:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user