Skip ARM specific tasks on Ubuntu to fix issue 40

This commit is contained in:
David Putzolu
2020-06-20 17:10:42 -07:00
parent a850b4a89a
commit a9294b1d43

View File

@@ -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: lineinfile:
path: /boot/firmware/cmdline.txt path: /boot/firmware/cmdline.txt
backrefs: yes backrefs: yes
@@ -7,8 +7,12 @@
line: '\1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory' line: '\1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory'
when: when:
- ansible_distribution == 'Ubuntu' - 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: reboot:
when: when:
- ansible_distribution == 'Ubuntu' - ansible_distribution == 'Ubuntu'
- ( ansible_facts.architecture is search("arm") or
ansible_facts.architecture is search("aarch64") )