--- {%- from "dip/map.jinja" import dip with context %} dip-service-file: file.managed: - name: /etc/systemd/system/dip.service - source: salt://dip/dip.service.j2 - user: root - group: root - template: jinja dip-service: service.running: - name: dip - enable: True