Skip to content

Commit

Permalink
use kdumpctl reset-crashkernel on rhel9 (#97)
Browse files Browse the repository at this point in the history
According to the rhel9 docs:
```
To use the crashkernel default parameters, run the following command:

kdumpctl reset-crashkernel --kernel=ALL
```
  • Loading branch information
richm authored Feb 8, 2022
1 parent 9d6b13d commit 361a979
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@
kexec_crash_size.content | b64decode | int < 1
}}"

- name: Use kdumpctl reset-crashkernel if needed
command: kdumpctl reset-crashkernel --kernel=ALL
when:
- kdump_reboot_required | bool
- ansible_facts['distribution'] in ['RedHat', 'CentOS']
- ansible_facts['distribution_major_version'] | int >= 9

- name: Fail if reboot is required and kdump_reboot_ok is false
fail:
msg: >-
Expand Down

0 comments on commit 361a979

Please sign in to comment.