aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--roles/my_dotfiles/defaults/main.yml2
-rw-r--r--roles/my_dotfiles/tasks/main.yml8
2 files changed, 5 insertions, 5 deletions
diff --git a/roles/my_dotfiles/defaults/main.yml b/roles/my_dotfiles/defaults/main.yml
new file mode 100644
index 0000000..ed60ede
--- /dev/null
+++ b/roles/my_dotfiles/defaults/main.yml
@@ -0,0 +1,2 @@
+my_dotfiles_repo: git@github.com:egor-tensin/linux-home.git
+my_dotfiles_dir: ~/workspace/personal/linux-home
diff --git a/roles/my_dotfiles/tasks/main.yml b/roles/my_dotfiles/tasks/main.yml
index 511483e..9851658 100644
--- a/roles/my_dotfiles/tasks/main.yml
+++ b/roles/my_dotfiles/tasks/main.yml
@@ -1,12 +1,10 @@
- name: Pull repositories
ansible.builtin.git:
accept_hostkey: true
- dest: "~/workspace/personal/{{ item }}"
- repo: "git@github.com:egor-tensin/{{ item }}.git"
- loop:
- - linux-home
+ dest: '{{ my_dotfiles_dir }}'
+ repo: '{{ my_dotfiles_repo }}'
- name: Run setup.sh
ansible.builtin.command: ./setup.sh
args:
- chdir: ~/workspace/personal/linux-home
+ chdir: '{{ my_dotfiles_dir }}'