l3d.acmetool

Ansible Galaxy MIT License

Acmetool LEクライアント

acmetool LEクライアントをインストールして設定します。

このロールは、do1jlr.nginxのAnsibleロールと一緒に使用することをお勧めしますが、単体でも使用できます。

do1jlr.nginxロールは、nginxのHTTPSサイトを有効にするフックをインストールし、acmetool want $domainコマンドを実行します。または、必要なドメインをacme_domain_want_list: []に追加します。ただし、acmetoolがドメインを要求できるように設定しておく必要があります。response-file.yml.j2を設定した方が良いかもしれません。

変数

  • acme_notification_email:(デフォルト: [email protected]): LEアカウントのメールアドレス。デフォルトは変更する必要があります!

  • acme_reload_services:(デフォルト: []): 証明書の変更によって再読み込みが必要なサービス (予め定義されたサービスはfiles/reloadファイルにあります)

  • acme_restart_services:(デフォルト: []): 証明書の変更によって再起動が必要なサービス

  • acme_domain_want_list:(デフォルト: []): 有効にしたいドメインのリスト。例:

acme_domain_want_list:
  - name: 'www.example.com'
  • acme_domain_unwant_list:(デフォルト: []): 有効にしたドメインを無効にします。acme_domain_want_listと同じ構文です。

  • submodules_versioncheck:(デフォルト: false): 基本的なバージョンチェックを有効にします。trueをお勧めします)

ファイル

  • response-file.yml.j2を以下の設定でfiles/reloadを使って検索します:
  files:
    - "response-file.{{ inventory_hostname }}.yml.j2"
    - 'response-file.yml.j2'
  paths:
    - 'templates/acmetool'
    - "templates/{{ inventory_hostname }}"
    - 'files/acmetool'
    - "files/{{ inventory_hostname }}"
    - 'templates'

このファイルは、証明書の種類、チャレンジメソッド、ACME通知メールなど、acmetoolの動作を設定します。自分のresponse-file.yml.j2を使って値を変更してください。

  • reloadrestartのフックを、vars/main.ymlに定義された設定を使ってfiles/reloadで検索します。

  • acme_reload_services:およびacme_restart_services:変数に基づいてacme-reloadacme-restartの設定を展開します。

参考

知っておくと良いこと

  • Debian Busterを使用している場合、より最新のacmetoolのバージョンに興味があるかもしれません。do1jlr.acmetool_fixロールを確認してください。これにより、Debianベースのシステムに特定のバージョンのacmetoolがインストールされます。
  • ドメインを手動でacmetoolに追加するには、acmetool want example.comを実行します。
  • ドメインを手動でacmetoolから削除するには、acmetool unwant example.comを実行します。
プロジェクトについて

Install acmetool, an easy-to-use command line tool for automatically acquiring certificates from ACME servers (eg. Let's Encrypt)

インストール
ansible-galaxy install l3d.acmetool
ライセンス
mit
ダウンロード
60.5k
所有者
Ansible roles provide a framework for fully independent, or interdependent collections of variables,tasks,files,templates &modules. Here we maintain some. enjoy