roles/common: Simplify `when` logic in main template

Less syntax is more readable syntax.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2015-03-15 17:29:41 +03:00
parent 58222706ba
commit b70ae58f48
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
1 changed files with 3 additions and 3 deletions

View File

@ -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