Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
9 changes: 9 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@
when: ansible_facts['distribution_major_version'] | int <= 8
changed_when: true

- name: Use kdumptool commandline -u (SLES 16+/openSUSE)
command: /usr/sbin/kdumptool commandline -u
when:
- kdump_reboot_required | bool
- ansible_facts['os_family'] == 'Suse'
- 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 +96,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