Skip to content

Instantly share code, notes, and snippets.

@vladdancer
Created March 19, 2015 17:16
Show Gist options
  • Save vladdancer/ad9707aa75728bcee2cb to your computer and use it in GitHub Desktop.
Save vladdancer/ad9707aa75728bcee2cb to your computer and use it in GitHub Desktop.
Install Mailhog with Ansible. Default HTTP port is 8025
#! /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
---
- 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