summaryrefslogtreecommitdiffstats
path: root/roles/hyprtheme/tasks/main.yml
diff options
context:
space:
mode:
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 7686df0d..09835eee 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_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_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_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_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_env.HOME }}/.config/hyprtheme/scripts/theme-set {{ hyprtheme_default_theme }}"
- creates: "{{ ansible_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