From 8d6f2cdad4e9b2e14cf16f5a9c3edadd2e65e638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Tue, 6 Nov 2018 23:47:55 +0100 Subject: Add crontabs --- roles/cron/tasks/main.yml | 32 ++++++++++++++++++++++++++++++++ site.yml | 1 + 2 files changed, 33 insertions(+) create mode 100644 roles/cron/tasks/main.yml diff --git a/roles/cron/tasks/main.yml b/roles/cron/tasks/main.yml new file mode 100644 index 0000000..0750993 --- /dev/null +++ b/roles/cron/tasks/main.yml @@ -0,0 +1,32 @@ +--- +- name: xdg runtime env + cron: + name: XDG_RUNTIME_DIR + env: true + job: "{{ lookup('env', 'XDG_RUNTIME_DIR') }}" +- name: xdg current desktop env + cron: + name: XDG_CURRENT_DESKTOP + env: true + job: LXDE +- name: desktop session env + cron: + name: DESKTOP_SESSION + env: true + job: LXDE +- name: display env + cron: + name: DISPLAY + env: true + job: ":0" +- name: xauthority env + cron: + name: XAUTHORITY + env: true + job: "{{ lookup('env', 'XDG_RUNTIME_DIR') }}/Xauthority" +- name: change wallpaper + cron: + name: change wallpaper + minute: 0 + job: 'pcmanfm -w `ls -d -1 $HOME/Backgrounds/* | shuf -n 1`' + diff --git a/site.yml b/site.yml index f05b960..87f4858 100644 --- a/site.yml +++ b/site.yml @@ -21,4 +21,5 @@ - lxde - tools - gnupg + - cron - contexts/fretlink -- cgit v1.2.3