Fix ssl-cert check
This commit is contained in:
parent
f25a30141f
commit
682cceb648
|
@ -50,8 +50,7 @@
|
||||||
append: true
|
append: true
|
||||||
become: true
|
become: true
|
||||||
when:
|
when:
|
||||||
- homeassistant_add_to_ssl_cert_group
|
- homeassistant_add_to_ssl_cert_group and "ssl-cert" in ansible_facts.getent_group
|
||||||
- ssl-cert in ansible_facts.getent_group
|
|
||||||
|
|
||||||
- name: add homeassistant user to dialout, gpio and i2c groups
|
- name: add homeassistant user to dialout, gpio and i2c groups
|
||||||
user:
|
user:
|
||||||
|
@ -114,8 +113,7 @@
|
||||||
ssl_certificate: {{ homeassistant_ssl_certificate }}
|
ssl_certificate: {{ homeassistant_ssl_certificate }}
|
||||||
ssl_key: {{ homeassistant_ssl_key }}
|
ssl_key: {{ homeassistant_ssl_key }}
|
||||||
when:
|
when:
|
||||||
- homeassistant_add_to_ssl_cert_group
|
- homeassistant_add_to_ssl_cert_group and "ssl-cert" in ansible_facts.getent_group
|
||||||
- ssl-cert in ansible_facts.getent_group
|
|
||||||
- homeassistant_ssl_certificate and homeassistant_ssl_key
|
- homeassistant_ssl_certificate and homeassistant_ssl_key
|
||||||
notify: systemctl restart homeassistant
|
notify: systemctl restart homeassistant
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,10 @@
|
||||||
state: absent
|
state: absent
|
||||||
remove: true
|
remove: true
|
||||||
influxdb_bind_hostname: 127.0.0.1
|
influxdb_bind_hostname: 127.0.0.1
|
||||||
homeassistant_influxdb_host: 127.0.0.1
|
homeassistant_add_to_ssl_cert_group: true
|
||||||
|
homeassistant_ssl_certificate: /var/lib/snakeoil/certs/example.org/fullchain.pem
|
||||||
|
homeassistant_ssl_key: /var/lib/snakeoil/certs/example.org/privkey.pem
|
||||||
|
# homeassistant_influxdb_host: 127.0.0.1
|
||||||
roles:
|
roles:
|
||||||
# - ../roles/apt_dist_upgrade
|
# - ../roles/apt_dist_upgrade
|
||||||
# - ../roles/common
|
# - ../roles/common
|
||||||
|
@ -61,7 +64,7 @@
|
||||||
# - ../roles/iptables
|
# - ../roles/iptables
|
||||||
# - ../roles/sshd
|
# - ../roles/sshd
|
||||||
# - ../roles/fail2ban
|
# - ../roles/fail2ban
|
||||||
# - ../roles/snake_oil_cert
|
- ../roles/snake_oil_cert
|
||||||
# - ../roles/users
|
# - ../roles/users
|
||||||
# - ../roles/dehydrated
|
# - ../roles/dehydrated
|
||||||
# - ../roles/nginx
|
# - ../roles/nginx
|
||||||
|
@ -79,7 +82,7 @@
|
||||||
# beehive_bind: 10.10.10.10:8181,
|
# beehive_bind: 10.10.10.10:8181,
|
||||||
# beehive_canonical_url: http://10.10.10.10:8181}
|
# beehive_canonical_url: http://10.10.10.10:8181}
|
||||||
# - ../roles/mosquitto
|
# - ../roles/mosquitto
|
||||||
- ../roles/influxdb
|
# - ../roles/influxdb
|
||||||
- ../roles/homeassistant
|
- ../roles/homeassistant
|
||||||
# - {role: ../roles/generate_ca, become: true}
|
# - {role: ../roles/generate_ca, become: true}
|
||||||
# - {role: ../roles/generate_certificate, become: true}
|
# - {role: ../roles/generate_certificate, become: true}
|
||||||
|
|
Loading…
Reference in a new issue