roles/common: Use ansible facts to reduce includes

This commit is contained in:
Alan Orth 2016-08-22 16:34:05 +03:00
parent bd318c5754
commit 6c6ff1b112
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -17,20 +17,10 @@
service: name=systemd-timesyncd enabled=yes service: name=systemd-timesyncd enabled=yes
tags: ntp tags: ntp
- include: packages_Ubuntu.yml - include: packages_{{ ansible_distribution }}.yml
when: ansible_distribution == 'Ubuntu'
tags: packages tags: packages
- include: packages_Debian.yml - include: iptables_{{ ansible_distribution }}.yml
when: ansible_distribution == 'Debian'
tags: packages
- include: iptables_Ubuntu.yml
when: ansible_distribution == 'Ubuntu'
tags: firewall
- include: iptables_Debian.yml
when: ansible_distribution == 'Debian'
tags: firewall tags: firewall
- include: sshd.yml - include: sshd.yml