From 313a27e20df466e2c88d3ebb5e5f15b6948525ac Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Mon, 3 Jul 2017 09:48:25 +0200 Subject: [PATCH] Handle incorrectly enabled hibernation/resume. --- roles/common/files/resume | 1 + roles/common/handlers/main.yml | 3 +++ roles/common/tasks/Debian.yml | 4 ++++ 3 files changed, 8 insertions(+) create mode 100644 roles/common/files/resume diff --git a/roles/common/files/resume b/roles/common/files/resume new file mode 100644 index 0000000..213a0e2 --- /dev/null +++ b/roles/common/files/resume @@ -0,0 +1 @@ +RESUME=none diff --git a/roles/common/handlers/main.yml b/roles/common/handlers/main.yml index 9e9ed2c..c7b3cb7 100644 --- a/roles/common/handlers/main.yml +++ b/roles/common/handlers/main.yml @@ -2,3 +2,6 @@ - name: Restart snmpd service: name=snmpd state=restarted + +- name: update-initramfs + command: update-initramfs -u -k all diff --git a/roles/common/tasks/Debian.yml b/roles/common/tasks/Debian.yml index e04529e..8668ff3 100644 --- a/roles/common/tasks/Debian.yml +++ b/roles/common/tasks/Debian.yml @@ -50,3 +50,7 @@ - name: Copy LDAP certificate copy: src=BKCA.crt dest=/etc/ldap/ssl/BKCA.crt mode=0444 + +- name: Disable hibernation/resume + copy: src=resume dest=/etc/initramfs-tools/conf.d/resume + notify: update-initramfs