]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
common: Disable sleeping on Ubuntu 20.04 and later 606/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 4 Feb 2021 17:28:51 +0000 (12:28 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 4 Feb 2021 17:28:51 +0000 (12:28 -0500)
Fixes: https://tracker.ceph.com/issues/49152
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/common/tasks/apt_systems.yml

index e5fe259a3370a9088494a6f9605043743450f178..6f34fcc7362da6fb153f07dd049037bd125c7f65 100644 (file)
   when: etc_timezone is changed
   tags:
     - timezone
+
+- name: Mask sleep units
+  systemd:
+    name: "{{ item }}"
+    state: stopped
+    masked: yes
+  with_items:
+    - sleep.target
+    - suspend.target
+    - hibernate.target
+    - hybrid-sleep.target
+  when: ansible_distribution_major_version|int >= 20