Skip to content

Commit

Permalink
try to do smth. with mail
Browse files Browse the repository at this point in the history
  • Loading branch information
DO1JLR committed Jan 2, 2021
1 parent 02716da commit 7f49c05
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@
[submodule "roles/robertdebock.fail2ban"]
path = roles/robertdebock.fail2ban
url = https://github.com/robertdebock/ansible-role-fail2ban.git
[submodule "roles/robertdebock.dovecot"]
path = roles/robertdebock.dovecot
url = https://github.com/robertdebock/ansible-role-dovecot.git
3 changes: 3 additions & 0 deletions docs/MAILSERVER.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Mailserver Setup
========================
Das Mailserver Setup wurde inspiriert von [thomas-leister.de/mailserver-debian-buster/](https://thomas-leister.de/mailserver-debian-buster/).
28 changes: 28 additions & 0 deletions docs/WEBSERVER.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Webserver Setup
======================

Die derzeit verwendeten Webserver werden benötigt um static content auszuliefern oder um Dienste per Reverse Proxy einzubinden.
Dafür ist keine krasse Magie notwendig sondern das kann relativ einfach mit nginx, etwas Lets Encrypt und ansible erledigt werden.

Allgemeines Setup
-------------------

Das allgemeine Setup zum absichern, aufhübschen und bedienen von Linux Servern ist in [docs/README.md](docs/README.md) näher beschrieben.

Webserver related Setup
-------------------------
```yml
- name: deploy web config
hosts: web
roles:
- { role: webhost2, tags: [web,webhost]}
- { role: acmetool_fix, tags: [web,acmetool]}
- { role: acmetool2, tags: [web,acmetool]}
- { role: nginx2, tags: [web,nginx]}
- { role: goaccess, tags: [web,goaccess]}
```
Hier abgebildet ist ein teil des Webserver Playbook. Die aktuelle Version gibt es in [site.yml](site.yml) in diesem Repo.
:x
20 changes: 20 additions & 0 deletions host_vars/mail01.l3d.space.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
users:
l3d:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]

accounts:
- l3d

# firewall
firewall_allowed_tcp_ports:
- "22"
- "25"
- "80"
- "443"
fail2ban_destemail: "fail2ban_notify_{{ inventory_hostname }}@l3d.yt"
1 change: 1 addition & 0 deletions roles/robertdebock.dovecot
Submodule robertdebock.dovecot added at f38b49
8 changes: 4 additions & 4 deletions site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
- { role: nginx2, tags: [web,nginx]}
- { role: goaccess, tags: [web,goaccess]}

#- name: deploy mail config
# hosts: mail
# roles:
# - { role: postfix, tags: [mail,postfix]}
- name: deploy mail config
hosts: mail
roles:
- { role: robertdebock.dovecot, tags: [mail,postfix]}
# - { role: dovecot, tags: [mail,dovecot]}

0 comments on commit 7f49c05

Please sign in to comment.