main.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ---
  2. - name: Package cache updated
  3. shell: pkg update -f
  4. - name: Dependencies installed
  5. pkgng:
  6. name: "py37-pip py37-supervisor"
  7. state: present
  8. - name: Supervisor enabled
  9. shell: sysrc supervisord_enable="YES"
  10. - name: 15Five source deployed
  11. git:
  12. repo: 'git@github.com:15five/fifteen5.git'
  13. dest: /root/fifteen5
  14. update: yes
  15. - name: Supervisor config file patched
  16. patch:
  17. src: supervisord.conf.patch
  18. dest: /usr/local/etc/supervisord.conf
  19. notify: Supervisor restarted
  20. - name: 15Five requirements up to date
  21. pip:
  22. requirements: /root/fifteen5/requirements/test.pip
  23. executable: pip
  24. - name: 15Five migrations up to date
  25. command: bash -lc "direnv exec /root/fifteen5 python /root/fifteen5/manage.py migrate"
  26. - name: 15Five supervisor file installed
  27. copy:
  28. src: fifteen5-supervisor.conf
  29. dest: /usr/local/etc/supervisor/conf.d/
  30. owner: root
  31. mode: 0644
  32. notify: Supervisor restarted
  33. - name: 15Five frontend files generated
  34. command: bash -lc "direnv exec /root/fifteen5 yarn && yarn build"