- name: Copy files copy: src: "files/{{ item.src }}" dest: "{{ account_homedir.stdout }}/{{ item.dest }}" mode: 0600 owner: "{{ account_name.stdout }}" group: "{{ group_name.stdout }}" loop: - src: kanshi.service dest: .config/systemd/user/kanshi.service - name: Enable services systemd: name: kanshi.service daemon_reload: yes enabled: true scope: user