Commit a5782b1d authored by Staf Wagemakers's avatar Staf Wagemakers
Browse files

* updated description

* use handler for the reboot
* removed ARM cpu detection
parent 53efb429
Loading
Loading
Loading
Loading
+2 −12
Original line number Diff line number Diff line
---
- name: Enable cgroup via boot commandline if not already enabled for Ubuntu on ARM
- name: Enable cgroup via boot commandline if not already enabled for Ubuntu on a Raspberry Pi
  lineinfile:
    path: /boot/firmware/cmdline.txt
    backrefs: yes
    regexp: '^((?!.*\bcgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory\b).*)$'
    line: '\1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory'
  when:
    - ansible_distribution == 'Ubuntu'
    - ( ansible_facts.architecture is search("arm") or
        ansible_facts.architecture is search("aarch64") )

- name: Reboot to enable cgroups for Ubuntu on ARM
  reboot:
  when:
    - ansible_distribution == 'Ubuntu'
    - ( ansible_facts.architecture is search("arm") or
        ansible_facts.architecture is search("aarch64") )
  notify: reboot