---
- name: "Ensure '%USERPROFILE%/.config/himalaya' directory exists"
  become_user: "{{ user.username }}"
  ansible.windows.win_file:
    path: '%USERPROFILE%\.config\himalaya'
    state: directory

- name: "Ensure {{ app_name }}'s configuration file is created"
  become_user: "{{ user.username }}"
  ansible.windows.win_copy:
    dest: '%USERPROFILE%\.config\himalaya\config.toml'
    content: "{{ user.himalaya_config }}"
    backup: true
