--- ipfs-service-file: file.managed: - name: /etc/systemd/system/ipfs.service - source: salt://ipfs/templates/ipfs.service.j2 - watch-in: - service: ipfs-service ipfs-service: service.running: - name: ipfs - enable: true - require: - file: ipfs-dir