roles/common: Use ansible facts to reduce includes
This commit is contained in:
parent
bd318c5754
commit
6c6ff1b112
@ -17,20 +17,10 @@
|
||||
service: name=systemd-timesyncd enabled=yes
|
||||
tags: ntp
|
||||
|
||||
- include: packages_Ubuntu.yml
|
||||
when: ansible_distribution == 'Ubuntu'
|
||||
- include: packages_{{ ansible_distribution }}.yml
|
||||
tags: packages
|
||||
|
||||
- include: packages_Debian.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'
|
||||
- include: iptables_{{ ansible_distribution }}.yml
|
||||
tags: firewall
|
||||
|
||||
- include: sshd.yml
|
||||
|
Loading…
Reference in New Issue
Block a user