No description
Find a file
Gerry Demaret a2f4d94798
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Fix lint
2026-09-06 11:48:46 +02:00
files nginx-prep: initial import 2026-09-05 12:45:28 +02:00
handlers Fix lint 2026-09-06 11:48:46 +02:00
meta Fix lint 2026-09-06 11:48:46 +02:00
tasks Fix lint 2026-09-06 11:48:46 +02:00
.ansible-lint Fix lint 2026-09-06 11:48:46 +02:00
.gitignore Fix lint 2026-09-06 11:48:46 +02:00
.woodpecker.yml Fix lint 2026-09-06 11:48:46 +02:00
LICENSE Add docs, lint and CI 2026-09-06 11:23:02 +02:00
README.md Make README match the rest 2026-09-06 11:28:15 +02:00

Ansible role: fosdem-video.nginx-prep

Ansible role for nginx certificate and key preparation for FOSDEM video infrastructure. This role prepares TLS certificates and keys for nginx configuration.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

Required Variables

This role requires the following variables to be defined:

web_certificate: <path to certificate file or certificate content>

PEM-formatted certificate for TLS/SSL.

web_key: <path to key file or key content>

PEM-formatted private key for TLS/SSL.

Notes

Adding the configuration in /etc/nginx/sites-enabled and reloading nginx is left to the caller. There is no built-in way to template all the possible ways nginx configuration can be generated.

Dependencies

None.

Example Playbook

- hosts: servers
  remote_user: root
  vars:
    web_certificate: "{{ lookup('file', '/path/to/certificate.crt') }}"
    web_key: "{{ lookup('file', '/path/to/certificate.key') }}"
  roles:
    - { role: fosdem-video.nginx-prep }

License

MIT