l3o.nginx_letsencrypt_pod
nginx_letsencrypt_pod
This Ansible role sets up nginx and letsencrypt containers using podman.
Role Variables
Variable | Description |
---|---|
nginx_domains |
List of domains that will show a default page |
letsencrypt_domains |
List of domains to get certificates for |
letsencrypt_camail |
Email address used to request certificates |
nginx_container_name |
Name of the nginx container (default is nginx ) |
letsencrypt_container_name |
Name of the letsencrypt container (default is certbot ) |
nginx_http_ip |
IP address for the HTTP port (optional) |
nginx_https_ip |
IP address for the HTTPS port (optional) |
nginx_http_port |
Port for HTTP (default is 8080 ) |
nginx_https_port |
Port for HTTPS (default is 8443 ) |
nginx_rootdir |
Root directory for nginx (default is /tmp/nginx ) |
letsencrypt_rootdir |
Root directory for letsencrypt (default is /tmp/letsencrypt ) |
nginx_webroot |
Directory for nginx web content (default is /usr/share/nginx/html ) |
nginx_confdir |
Directory for nginx configuration (default is /etc/nginx/conf.d ) |
nginx_static_config |
List of directories with static configuration files (optional) |
nginx_static_site |
List of directories for static website files (optional) |
nginx_extra_volumes |
List of extra volume mounts: key/value for host directory and container dir (optional) |
letsencrypt_confdir |
Directory for letsencrypt configuration (default is /etc/letsencrypt ) |
letsencrypt_statedir |
Directory for letsencrypt state (default is /var/lib/letsencrypt ) |
nginx_container_image |
Docker image for nginx (default is quay.io/cfelder/nginx:stable-www-data ) |
letsencrypt_container_image |
Docker image for letsencrypt (default is docker.io/certbot/certbot:latest ) |
podman_network_name |
Name of the podman network (default is podman ) |
container_state |
State of the container: present (default) or absent |
Dependencies
Example Playbook
Here’s an example playbook to set up nginx and letsencrypt containers for www.example.com
:
- name: Setup nginx and letsencrypt containers
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 }}"
License
GPLv3+
Author Information
Christian Felder
Informazioni sul progetto
Setup nginx containers with letsecnrypt certificates
Installa
ansible-galaxy install l3o.nginx_letsencrypt_pod
Licenza
Unknown
Download
83
Proprietario