* updated description
* use handler for the reboot * removed ARM cpu detectionpull/79/head
parent
53efb429e3
commit
a5782b1d61
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue