: migrate wordpress to app dir
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m24s

This commit is contained in:
VC
2025-04-11 11:38:48 +02:00
parent a9b279fe8b
commit c49025d712
6 changed files with 218 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
---
wordpress_version: "6.7.2"
wordpress_url: "https://fr.wordpress.org/wordpress-{{ wordpress_version }}-fr_FR.tar.gz"
wordpress_access_url: "{{ web_hostname | selectattr('type', 'defined') | selectattr('type', '==', 'wordpress') | map(attribute='host') | first }}"
# Access path
wordpress_app_home: "/var/www/{{ wordpress_access_url }}"
wordpress_data_home: "/srv/www-data/{{ wordpress_access_url }}"
# App dirs
wordpress_userdata_app_dirs:
- wp-content
- no-wp
wordpress_config_path: "{{ wordpress_app_home }}/wp-config.php"