Skip to content
Snippets Groups Projects
Commit f90eb55d authored by Lars Beckers's avatar Lars Beckers
Browse files

lint yaml files

parent c52cacea
No related branches found
No related tags found
No related merge requests found
---
extends: default
rules:
comments-indentation:
level: warning
document-start:
level: error
empty-lines:
max: 1
empty-values:
forbid-in-flow-mappings: true
forbid-in-block-mappings: true
line-length:
level: warning
octal-values:
forbid-implicit-octal: true
level: warning
......@@ -6,8 +6,8 @@ dovecot_mail_location: "maildir:~/mail:LAYOUT=fs"
dovecot_maildir_separator: /
dovecot_deny_users: []
dovecot_users_group: users
dovecot_auth_virtual: no
dovecot_auth_system: yes
dovecot_auth_virtual: false
dovecot_auth_system: true
dovecot_min_uid: 500
dovecot_max_uid: 0
......@@ -18,13 +18,14 @@ dovecot_tls_ciphers: "{{ tls_ciphers }}"
dovecot_tls_dh_length: 4096
dovecot_tls_protocols: 'TLSv1.1 TLSv1.2 !SSLv3'
dovecot_dsync: no
dovecot_dsync_tls: no
dovecot_dsync: false
dovecot_dsync_tls: false
dovecot_dsync_group: dovecot
dovecot_dsync_address: '0.0.0.0'
# yamllint disable-line rule:line-length
dovecot_dsync_password: "{{ lookup('passwordstore', dovecot_dsync_passwordstore ~ ' create=true length=20') }}"
dovecot_dsync_passwordstore: dsync
dovecot_dsync_host_attribute: ansible_host
dovecot_content_filter: no
dovecot_content_filter: false
dovecot_spam_folder: Spam
......@@ -42,7 +42,7 @@
state: directory
owner: dovecot
group: "{{ dovecot_users_group }}"
mode: 0755
mode: '0755'
tags:
- dovecot
- mail
......@@ -51,7 +51,7 @@
template:
src: "sieve/{{ item }}.j2"
dest: "/var/lib/dovecot/sieve.d/{{ item }}"
mode: 0550
mode: '0550'
owner: dovecot
group: "{{ dovecot_users_group }}"
with_items:
......@@ -70,7 +70,7 @@
copy:
src: "{{ item }}"
dest: "/var/lib/dovecot/sieve.d/{{ item }}"
mode: 0750
mode: '0750'
owner: dovecot
group: "{{ dovecot_users_group }}"
with_items:
......@@ -97,8 +97,7 @@
service:
name: dovecot
state: started
enabled: yes
enabled: true
tags:
- dovecot
- mail
......@@ -9,8 +9,8 @@ postfix_tls_key: /etc/ssl/private/privkey.pem
postfix_tls_ciphers: "{{ tls_ciphers }}"
postfix_tls_protocols: '!SSLv2 !SSLv3'
postfix_prefer_lmtp: no
postfix_enable_memcached: no
postfix_prefer_lmtp: false
postfix_enable_memcached: false
postfix_login_suffix: ''
postfix_dnsbl_sites:
- name: zen.spamhaus.org
......@@ -23,4 +23,4 @@ postfix_dnsbl_sites:
postfix_network_access:
- cidr: 134.130.5.32/27 # rwth
action: permit
postfix_content_filter: no # or: spamassassin
postfix_content_filter: false # or: spamassassin
......@@ -11,4 +11,3 @@
- name: postmap virtual
command: postmap cdb:/etc/postfix/virtual
---
# yamllint disable rule:line-length rule:colons
prosody_modules:
- name: "posix"
description: "POSIX functionality, sends server to background, enables syslog, etc."
......@@ -23,6 +24,7 @@ prosody_modules:
description: "Private XML storage (for room bookmarks, etc.)"
- name: "vcard"
description: "Allow users to set vCards"
# yamllint enable rule:line-length rule:colons
prosody_config_files:
- prosody
......@@ -30,5 +32,3 @@ prosody_config_files:
prosody_user: prosody
prosody_db: prosody
......@@ -49,7 +49,7 @@
service:
name: prosody
state: started
enabled: yes
enabled: true
tags:
- prosody
......
......@@ -4,7 +4,7 @@
postgresql_user:
name: "{{ db_user }}"
state: present
become: yes
become: true
become_user: postgres
tags:
- postgres
......@@ -14,7 +14,7 @@
name: "{{ db_name }}"
owner: "{{ db_user }}"
state: present
become: yes
become: true
become_user: postgres
tags:
- postgres
......@@ -26,7 +26,7 @@
privs: ALL
state: present
type: database
become: yes
become: true
become_user: postgres
tags:
- postgres
---
spamassassin_rewrite_subject: no
spamassassin_rewrite_subject: false
spamassassin_required_score: '3.0'
......@@ -16,7 +16,7 @@
dest: /etc/spamassassin/local.cf
owner: root
group: root
mode: 0644
mode: '0644'
tags:
- mail
- spamassassin
......@@ -27,7 +27,7 @@
dest: /etc/default/spamassassin
owner: root
group: root
mode: 0644
mode: '0644'
tags:
- mail
- spamassassin
......@@ -36,7 +36,7 @@
service:
name: spamassassin
state: started
enabled: yes
enabled: true
tags:
- mail
- spamassassin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment