Created
May 26, 2014 08:02
-
-
Save devster/24c0fc4ad93aeaf15562 to your computer and use it in GitHub Desktop.
mailcatcher ansible role
This file contains 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
--- | |
- 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