---
- name: Enable and restart lighttpd
  systemd:
    name: lighttpd
    state: >
      {%- if 'lighttpd' in enabled_services or 'docket' in enabled_services -%}
        restarted
      {%- else -%}
        stopped
      {%- endif -%}
    enabled: >
      {%- if 'lighttpd' in enabled_services or 'docket' in enabled_services -%}
        True
      {%- else -%}
        False
      {%- endif -%}

---
- name: Enable and restart lighttpd
  systemd:
    name: lighttpd
    state: >-
      {%- if 'lighttpd' in enabled_services or 'docket' in enabled_services -%}
        restarted
      {%- else -%}
        stopped
      {%- endif -%}
    enabled: >-
      {%- if 'lighttpd' in enabled_services or 'docket' in enabled_services -%}
        True
      {%- else -%}
        False
      {%- endif -%}

Fix trailing newline in lighttpd handler
Fix trailing newline in lighttpd handler
