summaryrefslogtreecommitdiff
path: root/config-terminal/tasks/main.yaml
blob: 7261cb833838e2b117eb47a460b1ed1eae9287d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
- name: Check .profile status
  stat:
    path: "/home/{{ user_name }}/.profile"
  register: profile
- name: Delete profile if not a link
  file:
    path: "/home/{{ user_name }}/.profile"
    state: absent
  when: profile.stat.islnk is defined and profile.stat.islnk == False
- name: Apply dotfiles
  command: "stow --target /home/{{ user_name }}/ --dir /home/{{ user_name }}/.local/share/dotfiles {{ item }}"
  with_items:
    - bash
    - sh
    - vim