When running the kernel_tune task, it consistently fails on the 'set disk scheduler to noop for every raw device' component. I have to disable that in the disk_scheduler.yml to get it working.
Error:
TASK [kernel_tune : set disk scheduler to noop for every raw device] ***************************************************************************************
failed: [x.x.x.x] (item=sdb) => {"ansible_loop_var": "item", "changed": true, "item": "sdb", "msg": "non-zero return code", "rc": 1, "stderr": "Shared connection to x.x.x.x closed.\r\n", "stderr_lines": ["Shared connection to x.x.x.x closed."], "stdout": "\r\nsh: echo: I/O error\r\n", "stdout_lines": ["", "sh: echo: I/O error"]}
failed: [x.x.x.x] (item=sdc) => {"ansible_loop_var": "item", "changed": true, "item": "sdc", "msg": "non-zero return code", "rc": 1, "stderr": "Shared connection to x.x.x.x closed.\r\n", "stderr_lines": ["Shared connection to x.x.x.x closed."], "stdout": "\r\nsh: echo: I/O error\r\n", "stdout_lines": ["", "sh: echo: I/O error"]}
failed: [x.x.x.x] (item=sda) => {"ansible_loop_var": "item", "changed": true, "item": "sda", "msg": "non-zero return code", "rc": 1, "stderr": "Shared connection to x.x.x.x closed.\r\n", "stderr_lines": ["Shared connection to x.x.x.x closed."], "stdout": "\r\nsh: echo: I/O error\r\n", "stdout_lines": ["", "sh: echo: I/O error"]}
Updated disk_scheduler.yml:
#- name: set disk scheduler to noop for every raw device
# raw: echo noop > /sys/block/{{ item }}/queue/scheduler
# with_items: "{{ raw_disk_list }}"
This is on an Azure Ubuntu 18.04 VM