calculated

This commit is contained in:
gwen 2026-02-11 10:46:05 +01:00
parent 417211ae04
commit d44323b049
2 changed files with 12 additions and 6 deletions

View file

@ -1,3 +1,7 @@
| Variable | Description |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------|
| **<a id="vps_domain_name" name="vps_domain_name">vps_domain_name</a>**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | The domain name of the VPS.<br/>**Example**: example.fr |
# Pedagogic html static file server # Pedagogic html static file server
> [!NOTE] > [!NOTE]
@ -18,11 +22,11 @@
> - Restarting Nginx: Nginx is restarted to apply the changes.\ > - Restarting Nginx: Nginx is restarted to apply the changes.\
> **Path**: nginx > **Path**: nginx
| Variable | Description | | Variable | Description |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------| |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **<a id="nginx.domain_name" name="nginx.domain_name">nginx.domain_name</a>**<br/>[`domainname`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | Domain name.<br/>**Validator**: type domainname<br/>**Example**: exemple.fr | | **<a id="nginx.domain_name" name="nginx.domain_name">nginx.domain_name</a>**<br/>[`domainname`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | Domain name.<br/>**Validator**: type domainname<br/>**Default**: the value of the variable "[The domain name of the VPS](#vps_domain_name)"<br/>**Example**: example.fr |
| **<a id="nginx.email" name="nginx.email">nginx.email</a>**<br/>[`mail`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | Email for the domain name.<br/>This is for certbot.<br/>**Example**: contact@exemple.fr | | **<a id="nginx.email" name="nginx.email">nginx.email</a>**<br/>[`mail`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | Email for the domain name.<br/>This is for certbot.<br/>**Example**: contact@exemple.fr |
| **<a id="nginx.htpasswd_file" name="nginx.htpasswd_file">nginx.htpasswd_file</a>**<br/>[`UNIX filename`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | Htpassword file.<br/>**Validator**: file type allowed: "file"<br/>**Default**: /etc/nginx/.htpasswd | | **<a id="nginx.htpasswd_file" name="nginx.htpasswd_file">nginx.htpasswd_file</a>**<br/>[`UNIX filename`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | Htpassword user credential file name.<br/>**Validator**: file type allowed: "file"<br/>**Default**: /etc/nginx/.htpasswd |
## Nginx authenticated user credentials ## Nginx authenticated user credentials

View file

@ -10,7 +10,7 @@ vps_domain_name:
nginx: nginx:
description: pedagogic html static file server description: pedagogic html static file server
help: |- help: |-
This is a complete Ansible playbook to configure Nginx with basic authentication using htpasswd. This is a complete Ansible playbook to configure Nginx with basic authentication using htpasswd.
This playbook installs Nginx, configures a static website, and secures access with basic authentication. This playbook installs Nginx, configures a static website, and secures access with basic authentication.
steps: steps:
@ -27,6 +27,8 @@ nginx:
domain_name: domain_name:
description: domain name description: domain name
default:
variable: __.vps_domain_name
examples: examples:
- example.fr - example.fr
type: domainname type: domainname