From a9294b1d43a33b211b3e1e82e2ce4d8e4b432f19 Mon Sep 17 00:00:00 2001 From: David Putzolu Date: Sat, 20 Jun 2020 17:10:42 -0700 Subject: [PATCH] Skip ARM specific tasks on Ubuntu to fix issue 40 --- roles/ubuntu/tasks/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/roles/ubuntu/tasks/main.yml b/roles/ubuntu/tasks/main.yml index 233e259..72d1eef 100644 --- a/roles/ubuntu/tasks/main.yml +++ b/roles/ubuntu/tasks/main.yml @@ -1,5 +1,5 @@ --- -- name: Enable cgroup via boot commandline if not already enabled +- name: Enable cgroup via boot commandline if not already enabled for Ubuntu on ARM lineinfile: path: /boot/firmware/cmdline.txt backrefs: yes @@ -7,8 +7,12 @@ 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 +- 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") )