Fix variable deprecations and split site.yml into system and user plays
Replace deprecated ansible_user_dir/ansible_user_id with ansible_facts['user_dir'/'user_id'] across all roles. Switch git repo URLs from HTTPS to SSH. Split site.yml into two plays so user-facing roles (dotfiles, scripts, hotkeys) run without become.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
---
|
||||
- name: Configure CachyOS workstation
|
||||
- name: Configure CachyOS workstation (system)
|
||||
hosts: cachy
|
||||
connection: local
|
||||
become: true
|
||||
@@ -17,6 +17,12 @@
|
||||
tags: web
|
||||
- role: flatpak
|
||||
tags: flatpak
|
||||
|
||||
- name: Configure CachyOS workstation (user)
|
||||
hosts: cachy
|
||||
connection: local
|
||||
|
||||
roles:
|
||||
- role: dotfiles
|
||||
tags: dotfiles
|
||||
- role: scripts
|
||||
|
||||
Reference in New Issue
Block a user