roles/common: Don't use ansible facts when we don't need to

No use testing the distro version only to use an ansible fact to
find the correct template.
This commit is contained in:
Alan Orth 2016-08-24 10:11:13 +03:00
parent 861b5c5413
commit da6d1e05b9
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -31,7 +31,7 @@
- name: Reconfigure /etc/rc.local
when: ansible_distribution == 'Ubuntu'
template: src=rc.local_{{ ansible_distribution }}.j2 dest=/etc/rc.local owner=root group=root mode=0755
template: src=rc.local_Ubuntu.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