Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/oefenweb/ansible-mailhog

Ansible role to set up (the latest version of) MailHog in Ubuntu systems
https://github.com/oefenweb/ansible-mailhog

ansible development mail mailhog smtp ubuntu

Last synced: 3 months ago
JSON representation

Ansible role to set up (the latest version of) MailHog in Ubuntu systems

Awesome Lists containing this project

README

        

## mailhog

[![CI](https://github.com/Oefenweb/ansible-mailhog/workflows/CI/badge.svg)](https://github.com/Oefenweb/ansible-mailhog/actions?query=workflow%3ACI)
[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-mailhog-blue.svg)](https://galaxy.ansible.com/Oefenweb/mailhog/)

Set up (the latest version of) [MailHog](https://github.com/mailhog/MailHog) in Ubuntu systems.

#### Requirements

None

#### Variables

* `mailhog_version` [default: `v1.0.0`]: Version to install
* `mailhog_install_prefix` [default: `/usr/local/bin`]: Install prefix

* `mailhog_user` [default: `mailhog`]: The user that will run the `mailhog` daemon
* `mailhog_group` [default: `mailhog`]: The primary group of the `mailhog` user
* `mailhog_groups` [default: `[]`]: The secondary groups of the `mailhog` user

* `mailhog_options: {}`]: Options to pass to the `mailhog` daemon (e.g. `{hostname: mailhog.test}`)

## Dependencies

None

#### Example (without any options)

```yaml
---
- hosts: all
roles:
- oefenweb.mailhog
```

#### Example (with daemon options)

```yaml
---
- hosts: all
roles:
- oefenweb.mailhog
vars:
mailhog_options:
hostname: "{{ inventory_hostname }}"
api-bind-addr: 127.0.0.1:8025
ui-bind-addr: 127.0.0.2:8025
smtp-bind-addr: 127.0.0.3:1025
```
#### License

MIT

#### Author Information

Mischa ter Smitten

#### Feedback, bug-reports, requests, ...

Are [welcome](https://github.com/Oefenweb/ansible-mailhog/issues)!