From f31151fb1a61f24dd096ef8aeeed5b9f205383c3 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sun, 28 May 2023 23:46:12 +0200 Subject: [PATCH] Adapted path --- roles/pc_application-caffeine/tasks/main.yml | 4 ++-- roles/pc_application-caffeine/templates/caffeine.desktop.j2 | 2 +- roles/pc_application-caffeine/vars/main.yml | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 roles/pc_application-caffeine/vars/main.yml diff --git a/roles/pc_application-caffeine/tasks/main.yml b/roles/pc_application-caffeine/tasks/main.yml index c8b53c1d..2dc201ee 100644 --- a/roles/pc_application-caffeine/tasks/main.yml +++ b/roles/pc_application-caffeine/tasks/main.yml @@ -7,10 +7,10 @@ - name: Create autostart directory if it doesn't exist file: - path: "{{ ansible_env.HOME }}/.config/autostart" + path: "{{auto_start_directory}}" state: directory - name: Copy caffeine.desktop file to autostart directory template: src: caffeine.desktop.j2 - dest: "{{ ansible_env.HOME }}/.config/autostart/caffeine.desktop" + dest: "{{auto_start_directory}}caffeine.desktop" diff --git a/roles/pc_application-caffeine/templates/caffeine.desktop.j2 b/roles/pc_application-caffeine/templates/caffeine.desktop.j2 index 843196ae..0f3b53dc 100644 --- a/roles/pc_application-caffeine/templates/caffeine.desktop.j2 +++ b/roles/pc_application-caffeine/templates/caffeine.desktop.j2 @@ -7,4 +7,4 @@ X-GNOME-Autostart-enabled=true Name[en_US]=caffeine Name=caffeine Comment[en_US]= -Comment= +Comment= \ No newline at end of file diff --git a/roles/pc_application-caffeine/vars/main.yml b/roles/pc_application-caffeine/vars/main.yml new file mode 100644 index 00000000..0dfc9601 --- /dev/null +++ b/roles/pc_application-caffeine/vars/main.yml @@ -0,0 +1 @@ +auto_start_directory: "/home/{{client_username}}/.config/autostart/" \ No newline at end of file