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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user