ansible-rookeries/tasks/dev_email_server.yaml

15 lines
627 B
YAML
Raw Permalink Normal View History

---
# 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=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/supervisord.conf
when: rookeries_environ_type == "dev"