From b70ae58f48f863893995abd406cfcf970a3fcd1a Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 15 Mar 2015 17:29:41 +0300 Subject: [PATCH] roles/common: Simplify `when` logic in main template Less syntax is more readable syntax. Signed-off-by: Alan Orth --- roles/common/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 26cc269..da6b708 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -9,7 +9,7 @@ # tags: hostname - include: packages_Ubuntu.yml - when: "ansible_distribution == 'Ubuntu'" + when: ansible_distribution == 'Ubuntu' tags: packages - include: iptables_Debian.yml @@ -39,11 +39,11 @@ tags: sysctl - name: Reconfigure /etc/rc.local - when: "ansible_distribution == 'CentOS'" + when: ansible_distribution == 'CentOS' template: src=rc.local_{{ ansible_distribution }}.j2 dest=/etc/rc.d/rc.local owner=root group=root mode=0755 - name: Reconfigure /etc/rc.local - when: "ansible_distribution == 'Debian'" + when: ansible_distribution == 'Debian' template: src=rc.local_{{ ansible_distribution }}.j2 dest=/etc/rc.local owner=root group=root mode=0755 - include: ssh-keys.yml