♻: remove systemd timers, put cron for freshrss
All checks were successful
ansible-lint / lint-everything (push) Successful in 3s

This commit is contained in:
VC
2025-03-11 11:19:24 +01:00
parent 0b7fc894da
commit cc92afa1c4
3 changed files with 6 additions and 35 deletions

View File

@@ -1,20 +1,8 @@
---
- name: Install FreshRSS timer
ansible.builtin.template:
src: freshrss.timer.j2
dest: /etc/systemd/system/freshrss.timer
mode: "0o644"
- name: Install FreshRSS service
ansible.builtin.template:
src: freshrss.service.j2
dest: /etc/systemd/system/freshrss.service
mode: "0o644"
- name: Enable FreshRSS timer
ansible.builtin.systemd_service:
name: freshrss.timer
daemon_reload: true
enabled: true
state: started
- name: Install freshrss cron
ansible.builtin.cron:
user: www-data
name: freshrss-cron
minute: "*/5"
job: "/usr/bin/php {{ freshrss_app_home }}/app/actualize_script.php > /dev/null"

View File

@@ -1,8 +0,0 @@
[Unit]
Description=FreshRSS get new content
Wants=freshrss.timer
[Service]
User=www-data
Type=simple
ExecStart=/usr/bin/php {{ freshrss_app_home }}/app/actualize_script.php

View File

@@ -1,9 +0,0 @@
[Unit]
Description=FreshRSS get new content
[Timer]
OnBootSec=30s
OnCalendar=*:0/5
[Install]
WantedBy=timers.target