- name: Install systemd service for ipfs become: true become_user: root block: - name: Create and copy systemd files ansible.builtin.template: src: '{{ item.src }}' dest: '/{{ item.path }}' with_community.general.filetree: '../templates/systemd/' when: item.state == 'file' - name: Reload systemd services ansible.builtin.systemd: name: ipfs state: started daemon_reload: yes