10-disks.conf.j2 466 B

123456789101112131415
  1. #
  2. # sysfs: disk settings / tuning
  3. #
  4. {% if ansible_virtualization_type is defined and ansible_virtualization_type == 'xen' and ansible_virtualization_role == 'guest' %}
  5. {% for disk in ansible_devices %}
  6. block/{{ disk }}/queue/scheduler = none
  7. {% endfor %}
  8. {% endif %}
  9. {% if sysfs_disk_settings %}
  10. {% for disk in ansible_devices %}
  11. {% for key in sysfs_disk_settings %}
  12. block/{{ disk }}/{{ key }} = {{ sysfs_disk_settings[key] }}
  13. {% endfor %}
  14. {%- endfor %}
  15. {% endif %}