浏览代码

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 6 年前
父节点
当前提交
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: fail:
msg: "Detected an undefined required variable" msg: "Detected an undefined required variable"
with_items: 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 - name: Ensure certbot Docker image is pulled
docker_image: docker_image:


正在加载...
取消
保存