summaryrefslogtreecommitdiffstats
path: root/roles/hyprtheme/tasks/main.yml
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2026-01-24 16:24:28 +0100
committerAhmed AbdelHalim <[email protected]>2026-01-24 16:24:28 +0100
commitab9b04baac2970fdcea9999e2bcfd7d60d3fc23d (patch)
tree7fcc3918e290e31309d74eb0b784fa6a00318ee3 /roles/hyprtheme/tasks/main.yml
parent3cf08783dec1d6c5f9e2a7933e730b054d78e376 (diff)
Fix ansible_facts to use only bracket notation instead of dot notation
Co-authored-by: claude.ai
Diffstat (limited to 'roles/hyprtheme/tasks/main.yml')
-rw-r--r--roles/hyprtheme/tasks/main.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/roles/hyprtheme/tasks/main.yml b/roles/hyprtheme/tasks/main.yml
index 09835eee..44d2b60d 100644
--- a/roles/hyprtheme/tasks/main.yml
+++ b/roles/hyprtheme/tasks/main.yml
@@ -12,20 +12,20 @@
- name: "Create current theme directory"
ansible.builtin.file:
- path: "{{ ansible_facts['env'].HOME }}/.config/hyprtheme/current"
+ path: "{{ ansible_facts['env']['HOME'] }}/.config/hyprtheme/current"
state: "directory"
mode: "0755"
- name: "Create themes directory"
ansible.builtin.file:
- path: "{{ ansible_facts['env'].HOME }}/.config/hyprtheme/themes/{{ item }}"
+ path: "{{ ansible_facts['env']['HOME'] }}/.config/hyprtheme/themes/{{ item }}"
state: "directory"
mode: "0755"
loop: "{{ hyprtheme_themes }}"
- name: "Create scripts directory"
ansible.builtin.file:
- path: "{{ ansible_facts['env'].HOME }}/.config/hyprtheme/scripts"
+ path: "{{ ansible_facts['env']['HOME'] }}/.config/hyprtheme/scripts"
state: "directory"
mode: "0755"
@@ -38,7 +38,7 @@
- name: "Copy theme scripts"
ansible.builtin.copy:
src: "{{ item }}"
- dest: "{{ ansible_facts['env'].HOME }}/.config/hyprtheme/{{ item }}"
+ dest: "{{ ansible_facts['env']['HOME'] }}/.config/hyprtheme/{{ item }}"
mode: "0755"
loop:
- "scripts/theme-set"
@@ -51,6 +51,6 @@
# This will ignore the errors in the script, because the script restarts some hyprland services, which
# will fail on ssh connection, but having the theme files placed in the right directory will make sure that
# the first setup of hyprtheme is working and doesn't show errors on first boot
- cmd: "{{ ansible_facts['env'].HOME }}/.config/hyprtheme/scripts/theme-set {{ hyprtheme_default_theme }}"
- creates: "{{ ansible_facts['env'].HOME }}/.config/hyprtheme/current/hyprland.conf"
+ cmd: "{{ ansible_facts['env']['HOME'] }}/.config/hyprtheme/scripts/theme-set {{ hyprtheme_default_theme }}"
+ creates: "{{ ansible_facts['env']['HOME'] }}/.config/hyprtheme/current/hyprland.conf"
failed_when: false