summaryrefslogtreecommitdiff
path: root/config-terminal
diff options
context:
space:
mode:
Diffstat (limited to 'config-terminal')
-rw-r--r--config-terminal/tasks/main.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/config-terminal/tasks/main.yaml b/config-terminal/tasks/main.yaml
new file mode 100644
index 0000000..ac1e495
--- /dev/null
+++ b/config-terminal/tasks/main.yaml
@@ -0,0 +1,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