summaryrefslogtreecommitdiff
path: root/dotfiles.yml
diff options
context:
space:
mode:
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 42e8c7d..9fe8c80 100644
--- a/dotfiles.yml
+++ b/dotfiles.yml
@@ -2,6 +2,9 @@
hosts: localhost
vars:
user: '{{ lookup("env", "USER") }}'
+ # Ideally group should be something like `id -gn {{ user }}` instead.
+ group: "{{ lookup('ansible.builtin.vars', 'user') \
+ if ansible_os_family != \"Darwin\" else 'staff' }}"
homedir: '{{ lookup("env", "HOME") }}'
roles:
- { role: dotfiles }