validation
This commit is contained in:
parent
36022c67af
commit
8ef72316e3
1 changed files with 6 additions and 7 deletions
|
|
@ -5,12 +5,11 @@ version: 1.1
|
||||||
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:
|
||||||
|
|
||||||
- Installation of Nginx: The playbook installs Nginx and ensures it is started and enabled.
|
- Installation of Nginx: The playbook installs Nginx and ensures it is started and enabled.
|
||||||
- Creation of the website directory: A directory is created to host the website files.
|
- Creation of the website directory: A directory is created to host the website files.
|
||||||
- Creation of a simple homepage: A simple HTML page is created for the website.
|
- Creation of a simple homepage: A simple HTML page is created for the website.
|
||||||
|
|
@ -22,21 +21,21 @@ nginx:
|
||||||
- Restarting Nginx: Nginx is restarted to apply the changes.
|
- Restarting Nginx: Nginx is restarted to apply the changes.
|
||||||
|
|
||||||
domain_name:
|
domain_name:
|
||||||
type: domainname
|
|
||||||
description: domain name
|
description: domain name
|
||||||
examples:
|
examples:
|
||||||
- exemple.fr
|
- exemple.fr
|
||||||
|
type: domainname
|
||||||
|
|
||||||
htpasswd_file:
|
htpasswd_file:
|
||||||
type: unix_filename
|
|
||||||
description: htpassword file
|
description: htpassword file
|
||||||
|
type: unix_filename
|
||||||
default: /etc/nginx/.htpasswd
|
default: /etc/nginx/.htpasswd
|
||||||
|
|
||||||
email:
|
email:
|
||||||
type: mail
|
|
||||||
description: domaine name email for certbot
|
description: domaine name email for certbot
|
||||||
examples:
|
examples:
|
||||||
- contact@exemple.fr
|
- contact@exemple.fr
|
||||||
|
type: mail
|
||||||
|
|
||||||
users:
|
users:
|
||||||
type: leadership
|
type: leadership
|
||||||
|
|
@ -46,4 +45,4 @@ nginx:
|
||||||
|
|
||||||
password:
|
password:
|
||||||
type: secret
|
type: secret
|
||||||
|
...
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue