Chapter 12. Configuring kdump using RHEL System Roles
To manage kdump using Ansible, you can use the
kdump role, which is one of the RHEL System Roles available in RHEL 8.
kdump enables you to specify where to save the contents of the system’s memory for later analysis.
For more information about RHEL System Roles and how to apply them, see Introduction to RHEL System Roles.
kdump RHEL System Role
kdump System Role enables you to set basic kernel dump parameters on multiple systems.
12.2. Kdump role parameters
The parameters used for the
kdump RHEL System Roles are:
The path to which
- The makedumpfile(8) man page.
For details about the parameters used in
kdumpand additional information about the
kdumpSystem Role, see the
12.3. Configuring kdump using RHEL System Roles
You can set basic kernel dump parameters on multiple systems using the
kdump System Role by running an Ansible playbook.
kdump role replaces the kdump configuration of the managed hosts entirely by replacing the
/etc/kdump.conf file. Additionally, if the kdump role is applied, all previous kdump settings are also replaced, even if they are not specified by the role variables, by replacing the
You have Red Hat Ansible Engine installed on the system from which you want to run the playbook.Note
You do not have to have Red Hat Ansible Automation Platform installed on the systems on which you want to deploy the
You have the
rhel-system-rolespackage installed on the system from which you want to run the playbook.
You have an inventory file which lists the systems on which you want to deploy
Create a new
playbook.ymlfile with the following content:
--- - hosts: kdump-test vars: kdump_path: /var/crash roles: - rhel-system-roles.kdump
Optional: Verify playbook syntax.
# ansible-playbook --syntax-check playbook.yml
Run the playbook on your inventory file:
# ansible-playbook -i inventory_file /path/to/file/playbook.yml
- For a detailed reference on kdump role variables, see the README.md or README.html files in the /usr/share/doc/rhel-system-roles/kdump directory.
- See Applying a system role.
Documentation installed with the