Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@
when: ansible_facts['distribution_major_version'] | int <= 8
changed_when: true

- name: Update crashkernel setting if needed (Suse)
when:
- kdump_reboot_required | bool
- ansible_facts['os_family'] == 'Suse'
block:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block is not needed - you could just have the single task name: Use kdumptool commandline -u (SLES 16+/openSUSE) without the block and add the when conditions above to that task

- name: Use kdumptool commandline -u (SLES 16+/openSUSE)
command: /usr/sbin/kdumptool commandline -u

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What package provides kdumptool?

when: ansible_facts['distribution_major_version'] | default(0) | int >= 16
changed_when: true

- name: Fail if reboot is required and kdump_reboot_ok is false
fail:
msg: >-
Expand Down Expand Up @@ -88,3 +98,4 @@
name: "{{ __kdump_service }}"
state: started
register: __kdump_service_start
when: not kdump_reboot_required | bool
10 changes: 10 additions & 0 deletions vars/Suse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
__kdump_packages:
- iproute # for fact gathering for ip facts
- kexec-tools
- kdump
- openssh-clients

__kdump_conf_file: /etc/kdump.conf
__kdump_service: kdump