mirror of
https://github.com/fscotto/infra.git
synced 2026-05-31 07:49:57 +00:00
Add host-specific dotfiles for nymph (autorandr config)
This commit is contained in:
@@ -12,3 +12,8 @@ host_packages:
|
||||
|
||||
host_enabled_services:
|
||||
- tlp
|
||||
|
||||
host_dotfiles:
|
||||
- src: .config/autorandr/
|
||||
dest: .config/autorandr/
|
||||
mode: preserve
|
||||
|
||||
@@ -49,6 +49,19 @@
|
||||
loop_control:
|
||||
label: "{{ item.dest }}"
|
||||
|
||||
- name: Copy host-specific dotfiles
|
||||
tags: [dotfiles, dotfiles:desktop, dotfiles:host]
|
||||
ansible.builtin.copy:
|
||||
src: "{{ playbook_dir }}/../dotfiles/{{ hostname }}/{{ item.src }}"
|
||||
dest: "{{ user_home }}/{{ item.dest }}"
|
||||
owner: "{{ username }}"
|
||||
group: "{{ user_group }}"
|
||||
mode: "{{ item.mode }}"
|
||||
loop: "{{ host_dotfiles | default([]) }}"
|
||||
loop_control:
|
||||
label: "{{ item.dest }}"
|
||||
when: host_dotfiles is defined and host_dotfiles | length > 0
|
||||
|
||||
- name: Render desktop templates with private values
|
||||
tags: [dotfiles, dotfiles:desktop]
|
||||
ansible.builtin.template:
|
||||
|
||||
Reference in New Issue
Block a user