l3o.nginx_letsencrypt_pod

nginx_letsencrypt_pod

Dieses Ansible-Rolle richtet nginx und letsencrypt Container mit Podman ein.

Rollenvariablen

Variable Wert
nginx_domains Liste von Domains, die eine Standardseite erhalten sollen
letsencrypt_domains Liste von Domains, für die Zertifikate angefordert werden
letsencrypt_camail E-Mail-Adresse, die für die Anforderung von Zertifikaten verwendet wird
nginx_container_name nginx (Standard)
letsencrypt_container_name certbot (Standard)
nginx_http_ip IP-Adresse des Hosts, an die der HTTP-Port gebunden werden soll (optional)
nginx_https_ip IP-Adresse des Hosts, an die der HTTPS-Port gebunden werden soll (optional)
nginx_http_port 8080 (Standard)
nginx_https_port 8443 (Standard)
nginx_rootdir /tmp/nginx (Standard)
letsencrypt_rootdir /tmp/letsencrypt (Standard)
nginx_webroot /usr/share/nginx/html (Standard)
nginx_confdir /etc/nginx/conf.d (Standard)
nginx_static_config Liste von Verzeichnissen mit statischen Konfigurationsdateien (optional)
nginx_static_site Liste von Verzeichnissen mit statischen Webseiten (optional)
nginx_extra_volumes Liste von zusätzlichen Bind-Mounts: Schlüssel/Wert für Hostverzeichnis, Containerverzeichnis (optional)
letsencrypt_confdir /etc/letsencrypt (Standard)
letsencrypt_statedir /var/lib/letsencrypt (Standard)
nginx_container_image quay.io/cfelder/nginx:stable-www-data (Standard)
letsencrypt_container_image docker.io/certbot/certbot:latest (Standard)
podman_network_name podman (Standard)
container_state present (Standard) oder absent

Abhängigkeiten

Beispiel-Playbook

Das folgende Playbook richtet nginx und letsencrypt Container für www.example.com ein:

- name: Nginx und Letsencrypt Container einrichten
  hosts: all
  tasks:
    - include_role:
        name: nginx_letsencrypt_pod
      vars:
        nginx_rootdir: "/tmp/nginx_ex"
        letsencrypt_rootdir: "/tmp/letsencrypt_ex"
        letsencrypt_camail: "[email protected]"
        nginx_http_port: "80"
        nginx_https_port: "443"
        nginx_domains:
          - "www.example.com"
        letsencrypt_domains: "{{ nginx_domains }}"

Lizenz

GPLv3+

Autoreninformationen

Christian Felder

Installieren
ansible-galaxy install l3o.nginx_letsencrypt_pod
GitHub Repository
Lizenz
Unknown
Downloads
83
Besitzer