Skip to content

Instantly share code, notes, and snippets.

@devster
Created May 26, 2014 08:02
Show Gist options
  • Save devster/24c0fc4ad93aeaf15562 to your computer and use it in GitHub Desktop.
Save devster/24c0fc4ad93aeaf15562 to your computer and use it in GitHub Desktop.
mailcatcher ansible role
---
- name: install dependencies
apt: >
pkg={{ item }}
state=present
sudo: yes
with_items:
- libsqlite3-dev
- name: gem
shell: >
gem install mailcatcher
creates=/usr/local/bin/mailcatcher
sudo: yes
- name: add mailcatcher starting command in rc.local
lineinfile: >
dest=/etc/rc.local
insertbefore='^exit'
line="/usr/local/bin/mailcatcher --http-ip=0.0.0.0"
sudo: yes
- name: starting manually mailcatcher
shell: "mailcatcher --http-ip=0.0.0.0 || :"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment