From da6d1e05b9f3a5464f33773cc2e22b5f0c2daaa6 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Wed, 24 Aug 2016 10:11:13 +0300 Subject: [PATCH] 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. --- roles/common/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index b9ce30c..a5ede72 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -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