From: Ismaƫl Bouya Date: Tue, 6 Nov 2018 22:47:55 +0000 (+0100) Subject: Add crontabs X-Git-Tag: v1.0~37 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=8d6f2cdad4e9b2e14cf16f5a9c3edadd2e65e638;p=perso%2FImmae%2FConfig%2FAnsible.git Add crontabs --- 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