On 03.06.16 16:00 'Jason Morgan' via Ansible Project wrote:

> Shoud I be looking at a template for each software version or a
> single config file with if version ==  statements.

That depends. Or to put it differently: Whatever suits you best.

Debian and CentOS have different versions of the fail2ban package,
where the complete configuration is different. So, I got two different
templates depending on the version.

OpenSSH has a similar config on all systems, with small deviations (no
UsePAM on OpenBSD, path to sftp-server, ...). There I have one file
with many '{% if ansible_os_family == "XYZ" %}' blocks.

Johannes

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5751B333.6010901%40ojkastl.de.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to