WIP: Keep trying to fix ansible
DO NOT COMMIT. I'm simply trying to understand why reboot is failing. This commit adds some debug statements to try to get a sense for what grubenv looks like. Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
		
							parent
							
								
									ea79182f72
								
							
						
					
					
						commit
						04f2203e24
					
				| @ -15,6 +15,14 @@ | |||||||
| - debug: | - debug: | ||||||
|     msg: "want: v{{ want_cgroups }}  actual: v{{ current_cgroups }}" |     msg: "want: v{{ want_cgroups }}  actual: v{{ current_cgroups }}" | ||||||
| 
 | 
 | ||||||
|  | - name: grubenv, pre-edit, cat | ||||||
|  |   shell: cat /boot/grub2/grubenv | ||||||
|  |   register: grubenv | ||||||
|  | 
 | ||||||
|  | - name: grubenv, pre-edit, show | ||||||
|  |   debug: | ||||||
|  |     msg: "{{ grubenv.stdout_lines }}" | ||||||
|  | 
 | ||||||
| # Update grubenv file to reflect the desired cgroup level | # Update grubenv file to reflect the desired cgroup level | ||||||
| - name: remove cgroup option from kernel flags | - name: remove cgroup option from kernel flags | ||||||
|   shell: |   shell: | ||||||
| @ -27,6 +35,14 @@ | |||||||
|     warn: false |     warn: false | ||||||
|   when: want_cgroups == 1 |   when: want_cgroups == 1 | ||||||
| 
 | 
 | ||||||
|  | - name: grubenv, post-edit, cat | ||||||
|  |   shell: cat /boot/grub2/grubenv | ||||||
|  |   register: grubenv | ||||||
|  | 
 | ||||||
|  | - name: grubenv, post-edit, show | ||||||
|  |   debug: | ||||||
|  |     msg: "post: {{ grubenv.stdout_lines }}" | ||||||
|  | 
 | ||||||
| # If want != have, reboot | # If want != have, reboot | ||||||
| - name: reboot and wait | - name: reboot and wait | ||||||
|   block: |   block: | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user