Skip to content
Snippets Groups Projects
main.yml 536 B
Newer Older
  • Learn to ignore specific revisions
  • - name: Test for Raspbian
      stat:
        path: /boot/cmdline.txt
      register: cmdline
    
    
    - 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:
        - cmdline.stat.path is defined
        - ansible_facts.architecture is search("arm")
    
      register: boot_cmdline
    
        - ansible_facts.architecture is search("arm")