From a5782b1d61ff9e306efcf35f56f384f93bcf075c Mon Sep 17 00:00:00 2001 From: Staf Wagemakers Date: Sun, 16 Aug 2020 10:11:15 +0200 Subject: [PATCH] * updated description * use handler for the reboot * removed ARM cpu detection --- roles/raspberrypi/tasks/prereq/Ubuntu.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/roles/raspberrypi/tasks/prereq/Ubuntu.yml b/roles/raspberrypi/tasks/prereq/Ubuntu.yml index 72d1eef..742fc21 100644 --- a/roles/raspberrypi/tasks/prereq/Ubuntu.yml +++ b/roles/raspberrypi/tasks/prereq/Ubuntu.yml @@ -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