♻: 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
|
||||
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"
|
||||
|
@@ -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