diff --git a/README.md b/README.md index d2475b8..e55b5d8 100644 --- a/README.md +++ b/README.md @@ -15,13 +15,13 @@ It works with any PHP framework or project. Running `install.yml` installs and configures: -| Component | Details | -| --- | --- | -| Web server | Apache, routing `*.localhost` domains to your projects | -| PHP | PHP-FPM 8.5 by default; 8.1–8.5 available via the `php81` … `php85` aliases | -| Database | MariaDB 12.3, plus phpMyAdmin | -| Node.js | 22 by default; 18–24 available via the `node18` … `node24` aliases | -| Tools | Composer, Git (configured with your name and email) and the required Ansible collections | +| Component | Details | +|------------|------------------------------------------------------------------------------------------| +| Web server | Apache, routing `*.localhost` domains to your projects | +| PHP | PHP-FPM 8.5 by default; 8.1–8.5 available via the `php81` … `php85` aliases | +| Database | MariaDB 12.3, plus phpMyAdmin | +| Node.js | 24 by default; 18–24 available via the `node18` … `node24` aliases | +| Tools | Composer, Git (configured with your name and email) and the required Ansible collections | The pinned versions live in `wsl/roles/php/tasks/main.yml`, `wsl/roles/mariadb/templates/MariaDB.repo.j2` and `wsl/roles/nodejs/tasks/main.yml`. diff --git a/docs/book/v2/virtualhosts/create-virtualhost.md b/docs/book/v2/virtualhosts/create-virtualhost.md index 27a7748..b0462a3 100644 --- a/docs/book/v2/virtualhosts/create-virtualhost.md +++ b/docs/book/v2/virtualhosts/create-virtualhost.md @@ -58,7 +58,7 @@ You will install your project under the `html` directory of your project, for ex * You can still run PHP scripts under the default Apache project directory, located at `/var/www/html/`. * If you encounter write permission issues, see [this guide](../faq.md#how-do-i-fix-common-permission-issues). * We install the PHP version pinned in `wsl/roles/php/tasks/main.yml` (currently 8.5) by default — if you need a different version, see [this guide](../faq.md#how-do-i-switch-to-a-different-version-of-php). -* We install Node.js 22 by default — if you need a different version, see [this guide](../faq.md#how-do-i-switch-to-a-different-version-of-nodejs). +* We install Node.js 24 by default — if you need a different version, see [this guide](../faq.md#how-do-i-switch-to-a-different-version-of-nodejs). ## FAQ diff --git a/wsl/roles/nodejs/tasks/main.yml b/wsl/roles/nodejs/tasks/main.yml index 1a6b698..324e41e 100644 --- a/wsl/roles/nodejs/tasks/main.yml +++ b/wsl/roles/nodejs/tasks/main.yml @@ -1,5 +1,5 @@ --- -- name: Add Node.js 22.x repo - shell: curl -fsSL https://rpm.nodesource.com/setup_22.x | sudo -E bash - -- name: Install Node.js 22.x +- name: Add Node.js 24.x repo + shell: curl -fsSL https://rpm.nodesource.com/setup_24.x | sudo -E bash - +- name: Install Node.js 24.x command: "dnf install nodejs -y"