You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.0KB

  1. ---
  2. - import_tasks: local_facts.yaml
  3. - name: debian package requirements for buildbot
  4. apt:
  5. pkg:
  6. - python3-pip
  7. - fish
  8. - git
  9. - python-psycopg2
  10. - postgresql
  11. - name: install buildbot
  12. pip:
  13. name: buildbot[bundle]
  14. executable: pip3
  15. - name: install gitea integration for buildbot
  16. pip:
  17. name: buildbot_gitea
  18. executable: pip3
  19. - name: buildbot system group
  20. group:
  21. name: buildbot
  22. system: yes
  23. - name: buildbot system user
  24. user:
  25. name: buildbot
  26. group: buildbot
  27. system: yes
  28. home: /var/lib/buildbot
  29. shell: /usr/bin/fish
  30. - name: buildbot var directory
  31. file:
  32. path: /var/lib/buildbot
  33. state: directory
  34. owner: buildbot
  35. group: buildbot
  36. mode: 0700
  37. # source of unit file from https://github.com/buildbot/buildbot-contrib/blob/master/master/contrib/systemd/buildbot%40.service
  38. - name: buildbot systemd service unit
  39. copy:
  40. src: systemd/buildbot@.service
  41. dest: /etc/systemd/system/buildbot@.service
  42. - import_tasks: database.yaml