|
@@ -1,11 +1,43 @@
|
|
|
---
|
|
|
+- name: Package cache updated
|
|
|
+ shell: pkg update -f
|
|
|
+
|
|
|
+- name: Dependencies installed
|
|
|
+ pkgng:
|
|
|
+ name: "py27-pip py27-supervisor"
|
|
|
+ state: present
|
|
|
+
|
|
|
+- name: Pip link workaround setup
|
|
|
+ file:
|
|
|
+ src: /usr/local/bin/pip-2.7
|
|
|
+ dest: /usr/local/bin/pip
|
|
|
+ state: link
|
|
|
+
|
|
|
+- name: Supervisor enabled
|
|
|
+ shell: sysrc supervisord_enable="YES"
|
|
|
+
|
|
|
- name: PBP source deployed
|
|
|
git:
|
|
|
repo: 'https://git.unbl.ink/secstate/pbp_com.git'
|
|
|
- dest: /root/pbp_com
|
|
|
+ dest: /root/
|
|
|
update: yes
|
|
|
|
|
|
-- name: PBP requirements up to date
|
|
|
+- name: Requirements up to date
|
|
|
pip:
|
|
|
requirements: /root/pbp_com/requirements.txt
|
|
|
executable: pip
|
|
|
+
|
|
|
+- 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
|