main.yml 903 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ---
  2. - name: Package cache updated
  3. shell: pkg update -f
  4. - name: Dependencies installed
  5. pkgng:
  6. name: "py27-pip py27-supervisor"
  7. state: present
  8. - name: Pip link workaround setup
  9. file:
  10. src: /usr/local/bin/pip-2.7
  11. dest: /usr/local/bin/pip
  12. state: link
  13. - name: Supervisor enabled
  14. shell: sysrc supervisord_enable="YES"
  15. - name: PBP source deployed
  16. git:
  17. repo: 'https://git.unbl.ink/secstate/pbp_com.git'
  18. dest: /root/
  19. update: yes
  20. - name: Requirements up to date
  21. pip:
  22. requirements: /root/pbp_com/requirements.txt
  23. executable: pip
  24. - name: Supervisor config file patched
  25. patch:
  26. src: supervisord.conf.patch
  27. dest: /usr/local/etc/supervisord.conf
  28. notify: Supervisor restarted
  29. - name: Supervisor file installed
  30. copy:
  31. src: supervisor.conf
  32. dest: /usr/local/etc/supervisor/conf.d/
  33. owner: root
  34. mode: 0644
  35. notify: Supervisor restarted