In between commit LDAP integration

This commit is contained in:
2025-01-21 14:09:06 +01:00
parent 02ae02634b
commit 936fdbad66
14 changed files with 144 additions and 119 deletions

View File

@@ -14,7 +14,7 @@ This Ansible role configures an Nginx server to serve a static homepage. It hand
- `nginx_homepage_root`: The directory where the homepage content will be stored (default: `/usr/share/nginx/homepage`)
- `domain`: The domain name for the Nginx server configuration
- `administrator_email`: The email used for SSL certificate registration with Let's Encrypt
- `nginx_homepage_repository_address`: The Git repository address containing the homepage content
- `nginx_static_repository_address`: The Git repository address containing the homepage content
## Dependencies

View File

@@ -1,16 +1,16 @@
---
- name: "pull homepage from {{nginx_homepage_repository_address}}"
- name: "pull homepage from {{nginx_static_repository_address}}"
git:
repo: "{{nginx_homepage_repository_address}}"
repo: "{{nginx_static_repository_address}}"
dest: "{{nginx_homepage_root}}"
update: yes
ignore_errors: true
- name: configure {{top_domain}}.conf
- name: configure {{primary_domain}}.conf
template:
src: "static.nginx.conf.j2"
dest: "{{nginx_servers_directory}}{{top_domain}}.conf"
dest: "{{nginx_servers_directory}}{{primary_domain}}.conf"
vars:
domain: "{{top_domain}}"
domain: "{{primary_domain}}"
notify: restart nginx
when: run_once_nginx is not defined