debian campatibly

This commit is contained in:
Martin Geno 2016-12-07 14:16:41 +01:00
parent 9669108a4a
commit 2be8028c5f
7 changed files with 28 additions and 6 deletions

View File

@ -0,0 +1,23 @@
---
- name: Install dependencies
apt: name={{item}} state=present
with_items:
- postfix
- dovecot-imapd
- dovecot-pop3d
- dovecot-pgsql
- dovecot-managesieved
- dovecot-sieve
- spamassassin
- procmail
notify:
- restart postfix
- restart dovecot
- name: Create aliases
file: path=/etc/postfix/{{item}} state=touch
with_items:
- aliases
- transport

View File

@ -1,6 +1,9 @@
---
- include: install_archlinux.yml
when: ansible_os_family == 'Archlinux'
when: (ansible_distribution == "Antergos") or (ansible_os_family == "Archlinux")
- include: install_debian.yml
when: (ansible_distribution == "Debian") or (ansible_distribution == "Ubuntu")
- name: Add service smtp lines
lineinfile: dest=/etc/services regexp='^smtps {{item}}' line="smtps {{item}}"

View File

@ -1,6 +1,6 @@
---
- name: Spamassassin update
command: /usr/bin/vendor_perl/sa-update -v
command: sa-update -v
register: bass_result
changed_when: "bass_result.rc != 1"
ignore_errors: yes

View File

@ -13,7 +13,6 @@ After=postgresql.service
#LimitNOFILE=65535
Type=simple
User=warehost
Group=nobody
ExecStart=/usr/local/bin/warehost-api -c /etc/warehost/api.conf
Restart=always

View File

@ -7,7 +7,6 @@ After=postgresql.service
[Service]
Type=simple
User=warehost
Group=nobody
ExecStart=/usr/local/bin/warehost-ftp -c /etc/warehost/ftp.conf
Restart=always

View File

@ -7,7 +7,6 @@ After=postgresql.service
[Service]
Type=oneshot
User=warehost
Group=nobody
ExecStart=/usr/local/bin/warehost-host -c /etc/warehost/host.conf
PermissionsStartOnly=true
ExecStartPost=/usr/bin/systemctl reload {{warehost_host_web_type}}

View File

@ -13,7 +13,6 @@ After=postgresql.service
#LimitNOFILE=65535
Type=simple
User=warehost
Group=nobody
ExecStart=/usr/local/bin/warehost-web -c /etc/warehost/web.conf
Restart=always