♻: move wordpress specifics for nginx to nginx role
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m33s

This commit is contained in:
VC
2025-04-11 08:24:10 +02:00
parent f4fcaca041
commit a9b279fe8b
5 changed files with 7 additions and 31 deletions

View File

@@ -1,4 +1,11 @@
## WP NintendojoFR ## WP NintendojoFR
fastcgi_cache_path
/dev/shm/nginx
levels=1:2
keys_zone=wpdojo:25m
inactive=1h
max_size=250m;
server { server {
listen *:443 ssl http2; listen *:443 ssl http2;
listen [::]:443 ssl http2; listen [::]:443 ssl http2;

View File

@@ -1,7 +0,0 @@
fastcgi_cache_path
/dev/shm/nginx
levels=1:2
keys_zone=wpdojo:25m
inactive=1h
max_size=250m;

View File

@@ -1,6 +0,0 @@
---
- name: Restart nginx
ansible.builtin.service:
name: nginx
state: restarted

View File

@@ -2,5 +2,3 @@
- name: Init DB - name: Init DB
ansible.builtin.include_tasks: db.yml ansible.builtin.include_tasks: db.yml
- name: WP for NintendojoFR
ansible.builtin.include_tasks: wp_dojo.yml

View File

@@ -1,16 +0,0 @@
---
- 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"