♻: remove systemd timers, put cron for freshrss
All checks were successful
ansible-lint / lint-everything (push) Successful in 3s
All checks were successful
ansible-lint / lint-everything (push) Successful in 3s
This commit is contained in:
@@ -1,20 +1,8 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Install FreshRSS timer
|
- name: Install freshrss cron
|
||||||
ansible.builtin.template:
|
ansible.builtin.cron:
|
||||||
src: freshrss.timer.j2
|
user: www-data
|
||||||
dest: /etc/systemd/system/freshrss.timer
|
name: freshrss-cron
|
||||||
mode: "0o644"
|
minute: "*/5"
|
||||||
|
job: "/usr/bin/php {{ freshrss_app_home }}/app/actualize_script.php > /dev/null"
|
||||||
- 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
|
|
||||||
|
@@ -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
|
|
@@ -1,9 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=FreshRSS get new content
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnBootSec=30s
|
|
||||||
OnCalendar=*:0/5
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=timers.target
|
|
Reference in New Issue
Block a user