From b7368c0e6774f1974c588061de076d7ea2950d11 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Sat, 9 Jan 2021 23:07:09 +0100 Subject: [PATCH] enable screensaver service --- tasks/main.yaml | 1 + tasks/screensaver.yaml | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 tasks/screensaver.yaml diff --git a/tasks/main.yaml b/tasks/main.yaml index 07fac52..359d1e7 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -7,6 +7,7 @@ - import_tasks: vnc.yaml - import_tasks: tmux.yaml - import_tasks: pulseaudio.yaml +- import_tasks: screensaver.yaml - import_tasks: git.yaml - import_tasks: kanboard.yaml diff --git a/tasks/screensaver.yaml b/tasks/screensaver.yaml new file mode 100644 index 0000000..6aafc28 --- /dev/null +++ b/tasks/screensaver.yaml @@ -0,0 +1,10 @@ +--- + +- name: screensaver graphical-session service enabled + systemd: + name: screensaver.service + enabled: true + scope: user + when: + - home_profile != "presentation" + - home_profile != "vdesk"