From ab8638f541ceba0c7aeaa5a12be78e60b5da2684 Mon Sep 17 00:00:00 2001 From: Nikolaos Boutalas Date: Mon, 7 Aug 2023 11:33:19 +0300 Subject: Add dotfiles task Use stow to automatically copy dotfiles in the correct directories --- local.yml | 1 + tasks/dotfiles.yml | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 tasks/dotfiles.yml diff --git a/local.yml b/local.yml index 99ae0a0..497adc5 100644 --- a/local.yml +++ b/local.yml @@ -1,3 +1,4 @@ - hosts: localhost tasks: - include: tasks/dependencies.yml + - include: tasks/dotfiles.yml diff --git a/tasks/dotfiles.yml b/tasks/dotfiles.yml new file mode 100644 index 0000000..cf64d9e --- /dev/null +++ b/tasks/dotfiles.yml @@ -0,0 +1,5 @@ + +- name: Stow dotfiles + shell: cd dotfiles && for dir in *; do (stow $dir -t ~); done + tags: + - dotfiles -- cgit v1.2.3