Allow user to provide a different configuration per host
This commit is contained in:
parent
82d5350ded
commit
d8113f6228
10 changed files with 238 additions and 30 deletions
|
@ -30,6 +30,8 @@
|
|||
loop:
|
||||
- src: "{{ role_path }}/files/.config"
|
||||
dest: "{{ ansible_env.HOME }}/"
|
||||
- src: "{{ role_path }}/files/.local"
|
||||
dest: "{{ ansible_env.HOME }}/"
|
||||
|
||||
- name: Ensure presence of required directories
|
||||
file:
|
||||
|
@ -39,6 +41,7 @@
|
|||
loop:
|
||||
- "{{ ansible_env.HOME }}/.config/hypr"
|
||||
- "{{ ansible_env.HOME }}/.config/waybar"
|
||||
- "{{ ansible_env.HOME }}/.local/bin"
|
||||
|
||||
- name: Render config files
|
||||
ansible.builtin.template:
|
||||
|
@ -50,4 +53,11 @@
|
|||
- src: ".config/hypr/hyprland.conf.j2"
|
||||
dest: "{{ ansible_env.HOME }}/.config/hypr/hyprland.conf"
|
||||
- src: ".config/waybar/config.j2"
|
||||
dest: "{{ ansible_env.HOME }}/.config/waybar/config"
|
||||
dest: "{{ ansible_env.HOME }}/.config/waybar/config"
|
||||
- src: ".local/bin/hyprhelpr.j2"
|
||||
dest: "{{ ansible_env.HOME }}/.local/bin/hyprhelpr"
|
||||
|
||||
- name: Make "~/.local/bin/hyprhelpr" executable
|
||||
ansible.builtin.file:
|
||||
dest: "{{ ansible_env.HOME }}/.local/bin/hyprhelpr"
|
||||
mode: "og+x"
|
Loading…
Add table
Add a link
Reference in a new issue