From 952768e26e67cdbadbabb7457bc90a3c04f3e169 Mon Sep 17 00:00:00 2001 From: David Putzolu Date: Sun, 31 May 2020 10:24:12 -0700 Subject: [PATCH] Simplify Ubuntu to reboot no matter what --- roles/ubuntu/tasks/main.yml | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/roles/ubuntu/tasks/main.yml b/roles/ubuntu/tasks/main.yml index c45ea24..233e259 100644 --- a/roles/ubuntu/tasks/main.yml +++ b/roles/ubuntu/tasks/main.yml @@ -8,21 +8,7 @@ when: - ansible_distribution == 'Ubuntu' -- name: Read /proc/cmdline to check for cgroups already running - slurp: - src: /proc/cmdline - register: slurped_cmdline - when: - - ansible_distribution == 'Ubuntu' - -- name: Decode slurped command line - set_fact: - cmdline: "{{ slurped_cmdline.content | b64decode }}" - when: - - ansible_distribution == 'Ubuntu' - -- name: Reboot to enable cgroups if not already enabled +- name: Reboot to enable cgroups reboot: when: - ansible_distribution == 'Ubuntu' - - '"cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory" not in cmdline'