add require_certificate

This commit is contained in:
Robert Kaussow 2017-12-18 11:44:17 +01:00
parent b6fc63b921
commit aa3295aa14
2 changed files with 6 additions and 4 deletions

View File

@ -5,11 +5,13 @@ mosquitto_bind_address: "{{ ansible_default_ipv4.address }}"
mosquitto_pid_dir: /var/run mosquitto_pid_dir: /var/run
mosquitto_base_dir: /etc/mosquitto mosquitto_base_dir: /etc/mosquitto
mosquitto_config_dir: "{{ mosquitto_base_dir }}/conf.d" mosquitto_config_dir: "{{ mosquitto_base_dir }}/conf.d"
mosquitto_passwd_file: "{{ mosquitto_base_dir }}/passwd"
mosquitto_pid_file: "{{ mosquitto_pid_dir }}/mosquitto.pid"
mosquitto_tls_enabled: False
mosquitto_require_certificate: False
mosquitto_ca_dir: "{{ mosquitto_base_dir }}/ca_certificates" mosquitto_ca_dir: "{{ mosquitto_base_dir }}/ca_certificates"
mosquitto_certs_dir: "{{ mosquitto_base_dir }}/certs" mosquitto_certs_dir: "{{ mosquitto_base_dir }}/certs"
mosquitto_ca_file: "{{ mosquitto_ca_dir }}/ca.pem" mosquitto_ca_file: "{{ mosquitto_ca_dir }}/ca.pem"
mosquitto_private_key_file: "{{ mosquitto_certs_dir }}/mttq.key" mosquitto_private_key_file: "{{ mosquitto_certs_dir }}/mttq.key"
mosquitto_cert_file: "{{ mosquitto_certs_dir }}/mttq.pem" mosquitto_cert_file: "{{ mosquitto_certs_dir }}/mttq.pem"
mosquitto_passwd_file: "{{ mosquitto_base_dir }}/passwd"
mosquitto_pid_file: "{{ mosquitto_pid_dir }}/mosquitto.pid"
mosquitto_tls_enabled: False

View File

@ -23,5 +23,5 @@ password_file {{ mosquitto_passwd_file }}
cafile {{ mosquitto_ca_file }} cafile {{ mosquitto_ca_file }}
certfile {{ mosquitto_cert_file }} certfile {{ mosquitto_cert_file }}
keyfile {{ mosquitto_private_key_file }} keyfile {{ mosquitto_private_key_file }}
require_certificate true require_certificate {{ mosquitto_require_certificate|lower }}
{% endif %} {% endif %}