Explorar el Código

Service belongs outside the condition

pull/4/head
Ales Komarek hace 6 años
padre
commit
3926c57beb
Se han modificado 1 ficheros con 16 adiciones y 16 borrados
  1. +16
    -16
      home_assistant/server.sls

+ 16
- 16
home_assistant/server.sls Ver fichero

@@ -79,6 +79,22 @@ home_assistant_config:
- require:
- file: home_assistant_config_dir

{%- if server.known_device is defined %}

home_assistant_know_devices:
file.managed:
- name: /etc/home_assistant/known_devices.yaml
- source: salt://home_assistant/files/known_devices.yaml
- template: jinja
- user: home_assistant
- mode: 600
- require:
- file: home_assistant_dir

{%- endif %}

{%- endif %}

home_assistant_service_script:
file.managed:
- name: /etc/systemd/system/home-assistant.service
@@ -101,20 +117,4 @@ home_assistant_restart_systemd:
module.wait:
- name: service.systemctl_reload

{%- if server.known_device is defined %}

home_assistant_know_devices:
file.managed:
- name: /etc/home_assistant/known_devices.yaml
- source: salt://home_assistant/files/known_devices.yaml
- template: jinja
- user: home_assistant
- mode: 600
- require:
- file: home_assistant_dir

{%- endif %}

{%- endif %}

{%- endif %}

Cargando…
Cancelar
Guardar