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:
parent
861b5c5413
commit
da6d1e05b9
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
- name: Reconfigure /etc/rc.local
|
- name: Reconfigure /etc/rc.local
|
||||||
when: ansible_distribution == 'Ubuntu'
|
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
|
- 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
|
template: src=etc/udev/rules.d/60-scheduler.rules.j2 dest=/etc/udev/rules.d/60-scheduler.rules owner=root group=root mode=0644
|
||||||
|
Loading…
Reference in New Issue
Block a user