* updated description

* use handler for the reboot
* removed ARM cpu detection
pull/79/head
Staf Wagemakers 2020-08-16 10:11:15 +02:00
parent 53efb429e3
commit a5782b1d61
1 changed files with 2 additions and 12 deletions

View File

@ -1,18 +1,8 @@
---
- 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