~comcloudway/ansible-srht

89bbe92e54960eeae7867fb28f057cb7bc760864 — Jakob Meier 10 months ago 1574b32
Added cron service for meta and git
M roles/git.sr.ht/tasks/main.yml => roles/git.sr.ht/tasks/main.yml +5 -0
@@ 24,3 24,8 @@

- name: Setup nginx
  ansible.builtin.import_tasks: nginx.yml

- name: Enable periodic cron service
  ansible.builtin.lineinfile:
    path: /etc/crontabs/root
    line: "*/20 * * * * gitsrht-periodic"

M roles/meta.sr.ht/tasks/main.yml => roles/meta.sr.ht/tasks/main.yml +5 -0
@@ 18,3 18,8 @@

- name: Setup nginx
  ansible.builtin.import_tasks: nginx.yml

- name: Enable periodic cron service
  ansible.builtin.lineinfile:
    path: /etc/crontabs/root
    line: "0 2 * * * metasrht-daily"

M roles/sr.ht-core/tasks/main.yml => roles/sr.ht-core/tasks/main.yml +6 -0
@@ 5,3 5,9 @@
  ansible.builtin.import_tasks: db.yml
- name: Copy config file
  ansible.builtin.import_tasks: config.yml

# uses the builtin busybox crond daemon by default
- name: Enable & start cron daemon
  ansible.builtin.service:
    name: crond
    state: started

M roles/sr.ht-core/tasks/packages.yml => roles/sr.ht-core/tasks/packages.yml +0 -6
@@ 6,12 6,6 @@
      - redis
    state: latest

- name: Install chron daemon
  community.general.apk:
    name:
      - chrony
    state: latest

- name: Add sourcehut repos
  ansible.builtin.lineinfile:
    path: /etc/apk/repositories