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/IMAP/templates/etc/postfix/main.cf.j2 | 2 ++ roles/MSA/templates/etc/postfix/main.cf.j2 | 2 ++ roles/MX/templates/etc/postfix/main.cf.j2 | 2 ++ roles/amavis/templates/etc/amavis/conf.d/50-user.j2 | 3 +++ 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 ++ roles/lists/templates/etc/postfix/main.cf.j2 | 2 ++ roles/out/templates/etc/postfix/main.cf.j2 | 2 ++ roles/webmail/templates/etc/postfix/main.cf.j2 | 2 ++ 10 files changed, 20 insertions(+) diff --git a/roles/IMAP/templates/etc/postfix/main.cf.j2 b/roles/IMAP/templates/etc/postfix/main.cf.j2 index 40c8d32..1f1f990 100644 --- a/roles/IMAP/templates/etc/postfix/main.cf.j2 +++ b/roles/IMAP/templates/etc/postfix/main.cf.j2 @@ -103,3 +103,5 @@ smtpd_recipient_restrictions = smtpd_data_restrictions = reject_unauth_pipelining + +# vim: set filetype=pfmain : diff --git a/roles/MSA/templates/etc/postfix/main.cf.j2 b/roles/MSA/templates/etc/postfix/main.cf.j2 index 036a887..36ec8d2 100644 --- a/roles/MSA/templates/etc/postfix/main.cf.j2 +++ b/roles/MSA/templates/etc/postfix/main.cf.j2 @@ -122,3 +122,5 @@ smtpd_recipient_restrictions = smtpd_data_restrictions = reject_unauth_pipelining + +# vim: set filetype=pfmain : diff --git a/roles/MX/templates/etc/postfix/main.cf.j2 b/roles/MX/templates/etc/postfix/main.cf.j2 index 4d8e53e..8785c5a 100644 --- a/roles/MX/templates/etc/postfix/main.cf.j2 +++ b/roles/MX/templates/etc/postfix/main.cf.j2 @@ -150,3 +150,5 @@ smtpd_recipient_restrictions = smtpd_data_restrictions = reject_unauth_pipelining + +# vim: set filetype=pfmain : diff --git a/roles/amavis/templates/etc/amavis/conf.d/50-user.j2 b/roles/amavis/templates/etc/amavis/conf.d/50-user.j2 index 84814ca..f5a8c61 100644 --- a/roles/amavis/templates/etc/amavis/conf.d/50-user.j2 +++ b/roles/amavis/templates/etc/amavis/conf.d/50-user.j2 @@ -1,4 +1,6 @@ use strict; +# {{ ansible_managed }} +# Do NOT edit this file directly! # # Place your configuration directives here. They will override those in @@ -180,3 +182,4 @@ $policy_bank{'INCOMING'} = { #------------ Do not modify anything below this line ------------- 1; # ensure a defined return +# vim: set filetype=perl : 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 : diff --git a/roles/lists/templates/etc/postfix/main.cf.j2 b/roles/lists/templates/etc/postfix/main.cf.j2 index b7a82fe..9859ac1 100644 --- a/roles/lists/templates/etc/postfix/main.cf.j2 +++ b/roles/lists/templates/etc/postfix/main.cf.j2 @@ -87,3 +87,5 @@ smtp_tls_policy_maps = cdb:$config_directory/tls_policy smtp_tls_fingerprint_digest = sha256 {% endif %} smtpd_tls_security_level = none + +# vim: set filetype=pfmain : diff --git a/roles/out/templates/etc/postfix/main.cf.j2 b/roles/out/templates/etc/postfix/main.cf.j2 index 9bf5882..294e92e 100644 --- a/roles/out/templates/etc/postfix/main.cf.j2 +++ b/roles/out/templates/etc/postfix/main.cf.j2 @@ -93,3 +93,5 @@ smtpd_data_restrictions = reject_unauth_pipelining content_filter = amavisfeed:[127.0.0.1]:10040 + +# vim: set filetype=pfmain : diff --git a/roles/webmail/templates/etc/postfix/main.cf.j2 b/roles/webmail/templates/etc/postfix/main.cf.j2 index 595f618..048302a 100644 --- a/roles/webmail/templates/etc/postfix/main.cf.j2 +++ b/roles/webmail/templates/etc/postfix/main.cf.j2 @@ -100,3 +100,5 @@ smtpd_recipient_restrictions = smtpd_data_restrictions = reject_unauth_pipelining + +# vim: set filetype=pfmain : -- cgit v1.2.3