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

View File

@ -9,7 +9,7 @@
# tags: hostname # tags: hostname
- include: packages_Ubuntu.yml - include: packages_Ubuntu.yml
when: "ansible_distribution == 'Ubuntu'" when: ansible_distribution == 'Ubuntu'
tags: packages tags: packages
- include: iptables_Debian.yml - include: iptables_Debian.yml
@ -39,11 +39,11 @@
tags: sysctl tags: sysctl
- name: Reconfigure /etc/rc.local - 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 template: src=rc.local_{{ ansible_distribution }}.j2 dest=/etc/rc.d/rc.local owner=root group=root mode=0755
- name: Reconfigure /etc/rc.local - 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 template: src=rc.local_{{ ansible_distribution }}.j2 dest=/etc/rc.local owner=root group=root mode=0755
- include: ssh-keys.yml - include: ssh-keys.yml