♻: move dojo wordpress crons to dedicated role

This commit is contained in:
VC
2025-02-14 20:52:28 +01:00
parent 3a65cfe2a8
commit 62d829e92c
7 changed files with 52 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
---
- name: Put nginx cache configuration file
ansible.builtin.copy:
src: files/fastcgi_cache.conf
dest: /etc/nginx/conf.d/fastcgi_cache.conf
mode: "0o644"
notify:
- Restart nginx
- name: Cron for wordpress
ansible.builtin.cron:
name: "WP Twitter refresh"
user: www-data
minute: "*/2"
job: "/usr/bin/wget -q -O - https://www.nintendojo.fr/wp-cron.php &> /dev/null"