Add courier role

This commit is contained in:
Tristan PILAT 2017-01-11 17:56:47 +01:00
parent 32b79f0bfa
commit 26aade2709
5 changed files with 73 additions and 0 deletions

11
courier/README.md Normal file
View file

@ -0,0 +1,11 @@
# Courier
Installation and basic configuration of courier.
## Tasks
Minimal configuration is in `tasks/main.yml`
## Available variables
The full list of variables (with default values) can be found in `defaults/main.yml`.

View file

@ -0,0 +1 @@
---

25
courier/handlers/main.yml Normal file
View file

@ -0,0 +1,25 @@
---
- name: restart courier-authdaemon
service:
name: courier-authdaemon
state: restarted
- name: restart courier-imap
service:
name: courier-imap
state: restarted
- name: restart courier-imap-ssl
service:
name: courier-imap-ssl
state: restarted
- name: restart courier-ldap
service:
name: courier-ldap
state: restarted
- name: restart courier-pop
service:
name: courier-pop
state: restarted
- name: restart courier-pop-ssl
service:
name: courier-pop-ssl
state: restarted

19
courier/meta/main.yml Normal file
View file

@ -0,0 +1,19 @@
galaxy_info:
author: Evolix
description: Installation and basic configuration of courier.
issue_tracker_url: https://forge.evolix.org/projects/ansible-roles/issues
license: GPLv2
min_ansible_version: 2.0
platforms:
- name: Debian
versions:
- jessie
dependencies: []
# List your role dependencies here, one per line.
# Be sure to remove the '[]' above if you add dependencies
# to this list.

17
courier/tasks/main.yml Normal file
View file

@ -0,0 +1,17 @@
- name: ensure packages are installed
apt:
name: '{{ item }}'
state: present
with_items:
- courier-authdaemon
- courier-authlib
- courier-authlib-ldap
- courier-authlib-userdb
- courier-base
- courier-imap
- courier-imap-ssl
- courier-ldap
- courier-pop
- courier-pop-ssl
- courier-ssl