summaryrefslogtreecommitdiff
path: root/dotfiles.yml
diff options
context:
space:
mode:
authorDmitry Ilvokhin <d@ilvokhin.com>2025-08-09 20:08:04 +0100
committerDmitry Ilvokhin <d@ilvokhin.com>2025-08-09 20:08:04 +0100
commitdb2934a7e9226249c08be173252aec132aa66782 (patch)
tree1cecd9a96f86a81dff010acb51ed7ce44710ec76 /dotfiles.yml
parent70dbf4a8978f78331466fd28ceb01748d7a5a183 (diff)
downloadinfra-db2934a7e9226249c08be173252aec132aa66782.tar.gz
infra-db2934a7e9226249c08be173252aec132aa66782.tar.bz2
infra-db2934a7e9226249c08be173252aec132aa66782.zip
Prefix dotfiles role variables with role name
Diffstat (limited to 'dotfiles.yml')
-rw-r--r--dotfiles.yml9
1 files changed, 5 insertions, 4 deletions
diff --git a/dotfiles.yml b/dotfiles.yml
index 9fe8c80..8726967 100644
--- a/dotfiles.yml
+++ b/dotfiles.yml
@@ -1,10 +1,11 @@
- name: Copy necessary dotfiles
hosts: localhost
vars:
- user: '{{ lookup("env", "USER") }}'
- # Ideally group should be something like `id -gn {{ user }}` instead.
- group: "{{ lookup('ansible.builtin.vars', 'user') \
+ dotfiles_user: '{{ lookup("env", "USER") }}'
+ # Ideally group should be something like `id -gn {{ dotfiles_user }}`
+ # instead.
+ dotfiles_group: "{{ lookup('ansible.builtin.vars', 'user') \
if ansible_os_family != \"Darwin\" else 'staff' }}"
- homedir: '{{ lookup("env", "HOME") }}'
+ dotfiles_homedir: '{{ lookup("env", "HOME") }}'
roles:
- { role: dotfiles }