Created
March 19, 2015 17:16
-
-
Save vladdancer/ad9707aa75728bcee2cb to your computer and use it in GitHub Desktop.
Install Mailhog with Ansible.
Default HTTP port is 8025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Only install if not exists | |
if [ ! -x /usr/bin/ansible ]; then | |
echo ">>> Installing ansible"; | |
#apt-get install software-properties-common | |
apt-add-repository ppa:ansible/ansible -y | |
apt-get update | |
apt-get install ansible -y | |
fi | |
sudo ansible-galaxy install geerlingguy.mailhog | |
ansible-playbook mailhog.yaml -s -K |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: 127.0.0.1 | |
connection: local | |
vars: | |
mailhog_binary_url: https://github.com/mailhog/MailHog/releases/download/v0.1.6/MailHog_linux_amd64 | |
roles: | |
- { role: geerlingguy.mailhog } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment