Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
infra
ansible-shared
communication
Commits
f90eb55d
Commit
f90eb55d
authored
Dec 12, 2018
by
Lars Beckers
Browse files
lint yaml files
parent
c52cacea
Changes
11
Hide whitespace changes
Inline
Side-by-side
.yamllint
0 → 100644
View file @
f90eb55d
---
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
dovecot/defaults/main.yml
View file @
f90eb55d
...
@@ -6,8 +6,8 @@ dovecot_mail_location: "maildir:~/mail:LAYOUT=fs"
...
@@ -6,8 +6,8 @@ dovecot_mail_location: "maildir:~/mail:LAYOUT=fs"
dovecot_maildir_separator
:
/
dovecot_maildir_separator
:
/
dovecot_deny_users
:
[]
dovecot_deny_users
:
[]
dovecot_users_group
:
users
dovecot_users_group
:
users
dovecot_auth_virtual
:
no
dovecot_auth_virtual
:
false
dovecot_auth_system
:
yes
dovecot_auth_system
:
true
dovecot_min_uid
:
500
dovecot_min_uid
:
500
dovecot_max_uid
:
0
dovecot_max_uid
:
0
...
@@ -18,13 +18,14 @@ dovecot_tls_ciphers: "{{ tls_ciphers }}"
...
@@ -18,13 +18,14 @@ dovecot_tls_ciphers: "{{ tls_ciphers }}"
dovecot_tls_dh_length
:
4096
dovecot_tls_dh_length
:
4096
dovecot_tls_protocols
:
'
TLSv1.1
TLSv1.2
!SSLv3'
dovecot_tls_protocols
:
'
TLSv1.1
TLSv1.2
!SSLv3'
dovecot_dsync
:
no
dovecot_dsync
:
false
dovecot_dsync_tls
:
no
dovecot_dsync_tls
:
false
dovecot_dsync_group
:
dovecot
dovecot_dsync_group
:
dovecot
dovecot_dsync_address
:
'
0.0.0.0'
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_password
:
"
{{
lookup('passwordstore',
dovecot_dsync_passwordstore
~
'
create=true
length=20')
}}"
dovecot_dsync_passwordstore
:
dsync
dovecot_dsync_passwordstore
:
dsync
dovecot_dsync_host_attribute
:
ansible_host
dovecot_dsync_host_attribute
:
ansible_host
dovecot_content_filter
:
no
dovecot_content_filter
:
false
dovecot_spam_folder
:
Spam
dovecot_spam_folder
:
Spam
dovecot/tasks/main.yml
View file @
f90eb55d
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
-
dovecot-managesieved
-
dovecot-managesieved
-
dovecot-sieve
-
dovecot-sieve
state
:
present
state
:
present
tags
:
tags
:
-
dovecot
-
dovecot
-
mail
-
mail
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
state
:
directory
state
:
directory
owner
:
dovecot
owner
:
dovecot
group
:
"
{{
dovecot_users_group
}}"
group
:
"
{{
dovecot_users_group
}}"
mode
:
0755
mode
:
'
0755
'
tags
:
tags
:
-
dovecot
-
dovecot
-
mail
-
mail
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
template
:
template
:
src
:
"
sieve/{{
item
}}.j2"
src
:
"
sieve/{{
item
}}.j2"
dest
:
"
/var/lib/dovecot/sieve.d/{{
item
}}"
dest
:
"
/var/lib/dovecot/sieve.d/{{
item
}}"
mode
:
0550
mode
:
'
0550
'
owner
:
dovecot
owner
:
dovecot
group
:
"
{{
dovecot_users_group
}}"
group
:
"
{{
dovecot_users_group
}}"
with_items
:
with_items
:
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
copy
:
copy
:
src
:
"
{{
item
}}"
src
:
"
{{
item
}}"
dest
:
"
/var/lib/dovecot/sieve.d/{{
item
}}"
dest
:
"
/var/lib/dovecot/sieve.d/{{
item
}}"
mode
:
0750
mode
:
'
0750
'
owner
:
dovecot
owner
:
dovecot
group
:
"
{{
dovecot_users_group
}}"
group
:
"
{{
dovecot_users_group
}}"
with_items
:
with_items
:
...
@@ -97,8 +97,7 @@
...
@@ -97,8 +97,7 @@
service
:
service
:
name
:
dovecot
name
:
dovecot
state
:
started
state
:
started
enabled
:
yes
enabled
:
true
tags
:
tags
:
-
dovecot
-
dovecot
-
mail
-
mail
postfix/defaults/main.yml
View file @
f90eb55d
...
@@ -9,8 +9,8 @@ postfix_tls_key: /etc/ssl/private/privkey.pem
...
@@ -9,8 +9,8 @@ postfix_tls_key: /etc/ssl/private/privkey.pem
postfix_tls_ciphers
:
"
{{
tls_ciphers
}}"
postfix_tls_ciphers
:
"
{{
tls_ciphers
}}"
postfix_tls_protocols
:
'
!SSLv2
!SSLv3'
postfix_tls_protocols
:
'
!SSLv2
!SSLv3'
postfix_prefer_lmtp
:
no
postfix_prefer_lmtp
:
false
postfix_enable_memcached
:
no
postfix_enable_memcached
:
false
postfix_login_suffix
:
'
'
postfix_login_suffix
:
'
'
postfix_dnsbl_sites
:
postfix_dnsbl_sites
:
-
name
:
zen.spamhaus.org
-
name
:
zen.spamhaus.org
...
@@ -21,6 +21,6 @@ postfix_dnsbl_sites:
...
@@ -21,6 +21,6 @@ postfix_dnsbl_sites:
-
name
:
list.dnswl.org
-
name
:
list.dnswl.org
modifier
:
-5
modifier
:
-5
postfix_network_access
:
postfix_network_access
:
-
cidr
:
134.130.5.32/27
# rwth
-
cidr
:
134.130.5.32/27
# rwth
action
:
permit
action
:
permit
postfix_content_filter
:
no
# or: spamassassin
postfix_content_filter
:
false
# or: spamassassin
postfix/handlers/main.yml
View file @
f90eb55d
...
@@ -11,4 +11,3 @@
...
@@ -11,4 +11,3 @@
-
name
:
postmap virtual
-
name
:
postmap virtual
command
:
postmap cdb:/etc/postfix/virtual
command
:
postmap cdb:/etc/postfix/virtual
postfix/tasks/main.yml
View file @
f90eb55d
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
-
postfix-pcre
-
postfix-pcre
-
postfix-cdb
-
postfix-cdb
state
:
present
state
:
present
tags
:
tags
:
-
postfix
-
postfix
-
mail
-
mail
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
-
master.cf
-
master.cf
-
main.cf
-
main.cf
-
postscreen_access.cidr
-
postscreen_access.cidr
notify
:
notify
:
-
restart postfix
-
restart postfix
tags
:
tags
:
-
postfix
-
postfix
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
tags
:
tags
:
-
postfix
-
postfix
-
mail
-
mail
-
name
:
ensure system alias database is present
-
name
:
ensure system alias database is present
template
:
template
:
src
:
aliases.j2
src
:
aliases.j2
...
...
prosody/defaults/main.yml
View file @
f90eb55d
---
---
# yamllint disable rule:line-length rule:colons
prosody_modules
:
prosody_modules
:
-
name
:
"
posix"
-
name
:
"
posix"
description
:
"
POSIX
functionality,
sends
server
to
background,
enables
syslog,
etc."
description
:
"
POSIX
functionality,
sends
server
to
background,
enables
syslog,
etc."
-
name
:
"
blocking"
-
name
:
"
blocking"
description
:
"
For
XEP-0191
Simple
Communications
Blocking."
description
:
"
For
XEP-0191
Simple
Communications
Blocking."
-
name
:
"
csi"
-
name
:
"
csi"
description
:
"
For
XEP-0352
Client
State
Indication"
description
:
"
For
XEP-0352
Client
State
Indication"
-
name
:
"
throttle_presence"
-
name
:
"
throttle_presence"
description
:
"
Supress
presence
updates
if
CSI
is
enabled"
description
:
"
Supress
presence
updates
if
CSI
is
enabled"
-
name
:
"
filter_chatstates"
-
name
:
"
filter_chatstates"
description
:
"
Supress
chatstate
updates
(someone
is
typing...)
if
CSI
is
enabled"
description
:
"
Supress
chatstate
updates
(someone
is
typing...)
if
CSI
is
enabled"
...
@@ -23,6 +24,7 @@ prosody_modules:
...
@@ -23,6 +24,7 @@ prosody_modules:
description
:
"
Private
XML
storage
(for
room
bookmarks,
etc.)"
description
:
"
Private
XML
storage
(for
room
bookmarks,
etc.)"
-
name
:
"
vcard"
-
name
:
"
vcard"
description
:
"
Allow
users
to
set
vCards"
description
:
"
Allow
users
to
set
vCards"
# yamllint enable rule:line-length rule:colons
prosody_config_files
:
prosody_config_files
:
-
prosody
-
prosody
...
@@ -30,5 +32,3 @@ prosody_config_files:
...
@@ -30,5 +32,3 @@ prosody_config_files:
prosody_user
:
prosody
prosody_user
:
prosody
prosody_db
:
prosody
prosody_db
:
prosody
prosody/tasks/main.yml
View file @
f90eb55d
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
service
:
service
:
name
:
prosody
name
:
prosody
state
:
started
state
:
started
enabled
:
yes
enabled
:
true
tags
:
tags
:
-
prosody
-
prosody
...
...
prosody/tasks/postgres.yml
View file @
f90eb55d
...
@@ -4,17 +4,17 @@
...
@@ -4,17 +4,17 @@
postgresql_user
:
postgresql_user
:
name
:
"
{{
db_user
}}"
name
:
"
{{
db_user
}}"
state
:
present
state
:
present
become
:
yes
become
:
true
become_user
:
postgres
become_user
:
postgres
tags
:
tags
:
-
postgres
-
postgres
-
name
:
ensure we have a postgres database
-
name
:
ensure we have a postgres database
postgresql_db
:
postgresql_db
:
name
:
"
{{
db_name
}}"
name
:
"
{{
db_name
}}"
owner
:
"
{{
db_user
}}"
owner
:
"
{{
db_user
}}"
state
:
present
state
:
present
become
:
yes
become
:
true
become_user
:
postgres
become_user
:
postgres
tags
:
tags
:
-
postgres
-
postgres
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
privs
:
ALL
privs
:
ALL
state
:
present
state
:
present
type
:
database
type
:
database
become
:
yes
become
:
true
become_user
:
postgres
become_user
:
postgres
tags
:
tags
:
-
postgres
-
postgres
spamassassin/defaults/main.yml
View file @
f90eb55d
---
---
spamassassin_rewrite_subject
:
no
spamassassin_rewrite_subject
:
false
spamassassin_required_score
:
'
3.0'
spamassassin_required_score
:
'
3.0'
spamassassin/tasks/main.yml
View file @
f90eb55d
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
dest
:
/etc/spamassassin/local.cf
dest
:
/etc/spamassassin/local.cf
owner
:
root
owner
:
root
group
:
root
group
:
root
mode
:
0644
mode
:
'
0644
'
tags
:
tags
:
-
mail
-
mail
-
spamassassin
-
spamassassin
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
dest
:
/etc/default/spamassassin
dest
:
/etc/default/spamassassin
owner
:
root
owner
:
root
group
:
root
group
:
root
mode
:
0644
mode
:
'
0644
'
tags
:
tags
:
-
mail
-
mail
-
spamassassin
-
spamassassin
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
service
:
service
:
name
:
spamassassin
name
:
spamassassin
state
:
started
state
:
started
enabled
:
yes
enabled
:
true
tags
:
tags
:
-
mail
-
mail
-
spamassassin
-
spamassassin
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment