blob: ac1e49554adf63cc2f4ce4ad1d039b9f9e8e3c63 (
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 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
|