- name: copy mpd template template: src: 'templates/mpd.j2' dest: '{{ ansible_env.HOME }}/.config/mpd/mpd.conf' mode: '0640' - name: created mpd files file: src: '{{ item }}' state: touch loop: - 'db' - 'state' - 'sticker.sql' - name: restart mpd service systemd: name: mpd state: restarted enabled: true scope: user