Commit 952768e2 authored by David Putzolu's avatar David Putzolu
Browse files

Simplify Ubuntu to reboot no matter what

parent a9affdf9
Loading
Loading
Loading
Loading
+1 −15
Original line number Diff line number Diff line
@@ -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'