fix(state): restart service when configuration has changedtags/v0.5.6
service.running: | service.running: | ||||
- name: {{ ufw.service.name }} | - name: {{ ufw.service.name }} | ||||
- enable: true | - enable: true | ||||
- require: | |||||
- watch: | |||||
- sls: {{ sls_config_file }} | - sls: {{ sls_config_file }} | ||||
{%- else %} | {%- else %} | ||||
service.dead: | service.dead: | ||||
- name: {{ ufw.service.name }} | - name: {{ ufw.service.name }} | ||||
- enable: false | - enable: false | ||||
- require: | |||||
- watch: | |||||
- sls: {{ sls_config_file }} | - sls: {{ sls_config_file }} | ||||
{%- endif %} | {%- endif %} |