From bb880fcc504dba39a7ba610ccb84187e863b1288 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Fri, 4 Jul 2014 01:07:44 +0200 Subject: Tell vim the underlying filetype of templates for syntax highlighting. --- roles/common/templates/etc/apt/sources.list.j2 | 1 + roles/common/templates/etc/fail2ban/jail.local.j2 | 2 ++ roles/common/templates/etc/postfix/main.cf.j2 | 2 ++ 3 files changed, 5 insertions(+) (limited to 'roles/common') diff --git a/roles/common/templates/etc/apt/sources.list.j2 b/roles/common/templates/etc/apt/sources.list.j2 index 2a948d2..b6d0a64 100644 --- a/roles/common/templates/etc/apt/sources.list.j2 +++ b/roles/common/templates/etc/apt/sources.list.j2 @@ -1,5 +1,6 @@ # {{ ansible_managed }} # Do NOT edit this file directly! +# vim: set filetype=debsources : deb http://ftp.se.debian.org/debian/ {{ ansible_lsb.codename }} main{% if 'non-free' in group_names or ansible_processor[0] | search("^Intel.*") %} contrib non-free{% endif %} diff --git a/roles/common/templates/etc/fail2ban/jail.local.j2 b/roles/common/templates/etc/fail2ban/jail.local.j2 index b76ffbc..c4ae284 100644 --- a/roles/common/templates/etc/fail2ban/jail.local.j2 +++ b/roles/common/templates/etc/fail2ban/jail.local.j2 @@ -94,3 +94,5 @@ port = http,https filter = roundcube logpath = /var/log/roundcube/errors {% endif %} + +# vim: set filetype=dosini : diff --git a/roles/common/templates/etc/postfix/main.cf.j2 b/roles/common/templates/etc/postfix/main.cf.j2 index 1abce71..1b0bc4a 100644 --- a/roles/common/templates/etc/postfix/main.cf.j2 +++ b/roles/common/templates/etc/postfix/main.cf.j2 @@ -66,3 +66,5 @@ multi_instance_directories = {%- endif %} /etc/postfix-{{ postfix_instance[g].name }} {%- endif %} {% endfor %} + +# vim: set filetype=pfmain : -- cgit v1.2.3