|
@@ -0,0 +1,33 @@
|
|
|
+---
|
|
|
+- name: Package cache updated
|
|
|
+ shell: pkg update -f
|
|
|
+
|
|
|
+- name: Mailhog binary downloaded
|
|
|
+ get_url:
|
|
|
+ url: https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_freebsd_amd64
|
|
|
+ dest: /usr/local/bin/mailhog
|
|
|
+ validate_certs: no
|
|
|
+ mode: '0744'
|
|
|
+
|
|
|
+- name: Dependencies installed
|
|
|
+ pkgng:
|
|
|
+ name: "py37-pip py37-supervisor"
|
|
|
+ state: present
|
|
|
+
|
|
|
+- name: Supervisor enabled
|
|
|
+ shell: sysrc supervisord_enable="YES"
|
|
|
+
|
|
|
+- name: Supervisor config file patched
|
|
|
+ patch:
|
|
|
+ src: supervisord.conf.patch
|
|
|
+ dest: /usr/local/etc/supervisord.conf
|
|
|
+
|
|
|
+ notify: Supervisor restarted
|
|
|
+
|
|
|
+- name: Supervisor file installed
|
|
|
+ copy:
|
|
|
+ src: supervisor.conf
|
|
|
+ dest: /usr/local/etc/supervisor/conf.d/
|
|
|
+ owner: root
|
|
|
+ mode: 0644
|
|
|
+ notify: Supervisor restarted
|