--- - name: Run install command shell: "{{ install_command }}" args: chdir: "{{ src }}" creates: "{{ src }}/node_modules" executable: /bin/sh - name: Register service for node server template: src: node.service dest: "/etc/systemd/system/{{ service_name }}" notify: "restart {{ domain }}"