summaryrefslogtreecommitdiff
path: root/dotfiles.yml
diff options
context:
space:
mode:
authorDmitry Ilvokhin <d@ilvokhin.com>2025-03-02 12:00:25 +0000
committerDmitry Ilvokhin <d@ilvokhin.com>2025-03-02 12:00:25 +0000
commita8e5a0e8f06a3185a50f160635613c67988a7b1d (patch)
tree52597f4a555f913715c5bdec381e54cdbb27c6e4 /dotfiles.yml
parent21b1199148f60a9f01a0ac3dc17aeab806395176 (diff)
downloadinfra-a8e5a0e8f06a3185a50f160635613c67988a7b1d.tar.gz
infra-a8e5a0e8f06a3185a50f160635613c67988a7b1d.tar.bz2
infra-a8e5a0e8f06a3185a50f160635613c67988a7b1d.zip
Use `homedir` variable instead of `user` in dotfiles
Diffstat (limited to 'dotfiles.yml')
-rw-r--r--dotfiles.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/dotfiles.yml b/dotfiles.yml
index 5074dbe..42e8c7d 100644
--- a/dotfiles.yml
+++ b/dotfiles.yml
@@ -1,4 +1,7 @@
- name: Copy necessary dotfiles
hosts: localhost
+ vars:
+ user: '{{ lookup("env", "USER") }}'
+ homedir: '{{ lookup("env", "HOME") }}'
roles:
- { role: dotfiles }