Add all files needed to bring up VM and run agaric.com locally
This commit is contained in:
parent
52c8b60bac
commit
4d2bc0ee24
742 changed files with 24037 additions and 0 deletions
43
box/provisioning/roles/geerlingguy.mailhog/tasks/main.yml
Normal file
43
box/provisioning/roles/geerlingguy.mailhog/tasks/main.yml
Normal file
|
@ -0,0 +1,43 @@
|
|||
---
|
||||
# Install and configure MailHog.
|
||||
- name: Ensure mailhog install directory exists.
|
||||
file:
|
||||
path: "{{ mailhog_install_dir }}"
|
||||
owner: root
|
||||
group: root
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: Download MailHog and mhsendmail binaries.
|
||||
get_url:
|
||||
url: "{{ item.url }}"
|
||||
dest: "{{ item.dest }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
with_items:
|
||||
- url: "{{ mailhog_binary_url }}"
|
||||
dest: "{{ mailhog_install_dir }}/mailhog"
|
||||
- url: "{{ mhsendmail_binary_url }}"
|
||||
dest: "{{ mailhog_install_dir }}/mhsendmail"
|
||||
|
||||
- name: Copy mailhog init script into place.
|
||||
template:
|
||||
src: mailhog.init.j2
|
||||
dest: /etc/init.d/mailhog
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
when: "ansible_service_mgr != 'systemd'"
|
||||
|
||||
- name: Copy mailhog systemd unit file into place (for systemd systems).
|
||||
template:
|
||||
src: mailhog.unit.j2
|
||||
dest: /etc/systemd/system/mailhog.service
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
when: "ansible_service_mgr == 'systemd'"
|
||||
|
||||
- name: Ensure mailhog is enabled and will start on boot.
|
||||
service: name=mailhog state=started enabled=yes
|
Loading…
Add table
Add a link
Reference in a new issue