ソースを参照

Make error about unset matrix_ssl_lets_encrypt_support_email more descriptive

Previously, we'd show an error like this:

{"changed": false, "item": null, "msg": "Detected an undefined required variable"}

.. which didn't mention the variable name
(`matrix_ssl_lets_encrypt_support_email`).
pull/163/head
Slavi Pantaleev 7年前
コミット
7c246b4a99
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      roles/matrix-nginx-proxy/tasks/ssl/setup_ssl_lets_encrypt.yml

+ 2
- 2
roles/matrix-nginx-proxy/tasks/ssl/setup_ssl_lets_encrypt.yml ファイルの表示

@@ -30,8 +30,8 @@
fail:
msg: "Detected an undefined required variable"
with_items:
- "{{ matrix_ssl_lets_encrypt_support_email }}"
when: "matrix_ssl_retrieval_method == 'lets-encrypt' and item is none"
- "matrix_ssl_lets_encrypt_support_email"
when: "matrix_ssl_retrieval_method == 'lets-encrypt' and vars[item] is none"

- name: Ensure certbot Docker image is pulled
docker_image:


読み込み中…
キャンセル
保存