l3o.nginx_letsencrypt_pod

nginx_letsencrypt_pod

このAnsibleロールは、podmanを使用してnginxとletsencryptコンテナを設定します。

ロール変数

変数
nginx_domains デフォルトページを表示するドメインのリスト
letsencrypt_domains 証明書をリクエストするドメインのリスト
letsencrypt_camail 証明書をリクエストするために使用するメールアドレス
nginx_container_name nginx(デフォルト)
letsencrypt_container_name certbot(デフォルト)
nginx_http_ip httpポートがバインドされるホストIPアドレス(オプション)
nginx_https_ip httpsポートがバインドされるホストIPアドレス(オプション)
nginx_http_port 8080(デフォルト)
nginx_https_port 8443(デフォルト)
nginx_rootdir /tmp/nginx(デフォルト)
letsencrypt_rootdir /tmp/letsencrypt(デフォルト)
nginx_webroot /usr/share/nginx/html(デフォルト)
nginx_confdir /etc/nginx/conf.d(デフォルト)
nginx_static_config 静的構成ファイルを含むディレクトリのリスト(オプション)
nginx_static_site 静的ウェブサイトを含むディレクトリのリスト(オプション)
nginx_extra_volumes 追加のバインドマウントのリスト:hostdir、containerdirのキー/バリュー(オプション)
letsencrypt_confdir /etc/letsencrypt(デフォルト)
letsencrypt_statedir /var/lib/letsencrypt(デフォルト)
nginx_container_image quay.io/cfelder/nginx:stable-www-data(デフォルト)
letsencrypt_container_image docker.io/certbot/certbot:latest(デフォルト)
podman_network_name podman(デフォルト)
container_state present(デフォルト)またはabsent

依存関係

例としてのPlaybook

次のPlaybookは、www.example.comのためにnginxとletsencryptコンテナを設定します:

- name: nginxとletsencryptコンテナの設定
  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 }}"

ライセンス

GPLv3+

著者情報

クリスチャン・フェルダー

プロジェクトについて

Setup nginx containers with letsecnrypt certificates

インストール
ansible-galaxy install l3o.nginx_letsencrypt_pod
ライセンス
Unknown
ダウンロード
83
所有者