15 lines
641 B
YAML
15 lines
641 B
YAML
---
|
|
# Sets up and runs a SMTP email sink to assist with development.
|
|
- name: install mailsink test server into target virtualenv
|
|
pip: name=mailsink virtualenv={{ rookeries_dev_email_server_venv }} version=0.0.2
|
|
when: rookeries_environ_type == "dev"
|
|
|
|
- name: upload supervisor configuration to web server home
|
|
template: src=dev_supervisor/mailsink_supervisor.conf dest=/etc/supervisor/conf.d/mailsink_supervisor.conf
|
|
sudo: yes
|
|
when: rookeries_environ_type == "dev"
|
|
|
|
- name: restart up the mailsink program
|
|
supervisorctl: name=mailsink state=restarted config=/etc/supervisor/supervisor.conf
|
|
when: rookeries_environ_type == "dev"
|