This role is used to install and configure MailDev. The focus of the role is to provide a simple way to test emails in a development environment. The role is focused on installing and configuring MailDev on the following platforms:
- flyingcircus.io NixOS VMs
- Ubuntu VMs
Having ansible installed should be just fine :).
The available variables are stored in defaults/main.yml
:
$ cat defaults/main.yml
---
# defaults file for slc_ansible_role_maildev
maildev_installation_folder: "{{ ansible_env.HOME }}/maildev"
maildev_install_cronjob: true
maildev_password:
maildev_username: "admin"
maildev_base_pathname:
This module has no dependencies.
- name: Install Maildev
hosts: localhost
connection: local
roles:
- role: MailDev
vars:
- maildev_installation_folder: "{{ ansible_env.HOME }}/Code/buildouts/buildout.maildev"
Include this role with ansible-galaxy:
$ cat requirements.yml
roles:
- name: MailDev
src: https://github.com/syslabcom/slc-ansible-role-maildev
version: main
Then run ansible-galaxy install -r requirements.yml
.