k3s/contrib/ansible/roles/raspbian/tasks/main.yml
Vincent RABAH 39e2e45cc2 Ansible provisionning (#217)
Ansible provisionning contrib
2019-04-26 21:10:27 +02:00

15 lines
390 B
YAML

---
- name: Activating cgroup on Raspbian
lineinfile:
path: /boot/cmdline.txt
regexp: '^(.*rootwait)$'
line: '\1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory'
backrefs: true
when: ( ansible_facts.architecture is search "arm" )
- name: Rebooting on Raspbian
shell: reboot now
ignore_errors: true
when: ( ansible_facts.architecture is search "arm" )