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
2.1 KiB

  1. ---
  2. - name: Add cronjob for lifting expired temporary bans
  3. cron:
  4. name: lift_expired_temporary_bans
  5. job: "{{ bin_dir }}/python -c \"from scripts.lift_expired_temporary_bans import lift_expired_temporary_bans; lift_expired_temporary_bans('{{ app_dir }}/{{ ini_file }}')\""
  6. user: "{{ app_username }}"
  7. hour: "*"
  8. minute: 1
  9. - name: Add cronjob for closing voting on old posts
  10. cron:
  11. name: close_voting_on_old_posts
  12. job: "{{ bin_dir }}/python -c \"from scripts.close_voting_on_old_posts import close_voting_on_old_posts; close_voting_on_old_posts('{{ app_dir }}/{{ ini_file }}')\""
  13. user: "{{ app_username }}"
  14. hour: "*"
  15. minute: 3
  16. - name: Add cronjob for cleaning up private data
  17. cron:
  18. name: clean_private_data
  19. job: "{{ bin_dir }}/python -c \"from scripts.clean_private_data import clean_all_data; clean_all_data('{{ app_dir }}/{{ ini_file }}')\""
  20. user: "{{ app_username }}"
  21. hour: 4
  22. minute: 10
  23. - name: Add cronjob for generating yesterday's group stats
  24. cron:
  25. name: generate_group_stats_for_yesterday
  26. job: "{{ bin_dir }}/python -c \"from scripts.generate_group_stats_for_yesterday import generate_stats; generate_stats('{{ app_dir }}/{{ ini_file }}')\""
  27. user: "{{ app_username }}"
  28. hour: 0
  29. minute: 10
  30. - name: Add cronjob for generating site-icons CSS file
  31. cron:
  32. name: generate_site_icons_css
  33. job: "{{ bin_dir }}/python -c \"from scripts.generate_site_icons_css import generate_css; generate_css()\""
  34. user: "{{ app_username }}"
  35. minute: "*/5"
  36. - name: Add cronjob for posting scheduled topics
  37. cron:
  38. name: post_scheduled_topics
  39. job: "{{ bin_dir }}/python -c \"from scripts.post_scheduled_topics import post_scheduled_topics; post_scheduled_topics('{{ app_dir }}/{{ ini_file }}')\""
  40. user: "{{ app_username }}"
  41. - name: Add cronjob for updating all groups' lists of common topic tags
  42. cron:
  43. name: update_groups_common_topic_tags
  44. job: "{{ bin_dir }}/python -c \"from scripts.update_groups_common_topic_tags import update_common_topic_tags; update_common_topic_tags('{{ app_dir }}/{{ ini_file }}')\""
  45. user: "{{ app_username }}"
  46. hour: "*"
  47. minute: 0