roles/common: Set I/O scheduler via udev

All servers with non-rotating disks (SSDs) should be running noop,
and the rest should be running deadline.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
2015-03-15 17:52:05 +03:00
parent 9fda345a24
commit 3a5b50f941
2 changed files with 24 additions and 0 deletions

View File

@ -43,6 +43,10 @@
when: ansible_distribution == 'Ubuntu'
template: src=rc.local_{{ ansible_distribution }}.j2 dest=/etc/rc.local owner=root group=root mode=0755
- name: Set I/O scheduler
template: src=etc/udev/rules.d/60-scheduler.rules.j2 dest=/etc/udev/rules.d/60-scheduler.rules owner=root group=root mode=0644
tags: udev
- include: ssh-keys.yml
tags: ssh-keys