]> git.immae.eu Git - perso/Immae/Config/Ansible.git/commitdiff
Add crontabs
authorIsmaël Bouya <ismael.bouya@fretlink.com>
Tue, 6 Nov 2018 22:47:55 +0000 (23:47 +0100)
committerIsmaël Bouya <ismael.bouya@fretlink.com>
Tue, 6 Nov 2018 22:47:55 +0000 (23:47 +0100)
roles/cron/tasks/main.yml [new file with mode: 0644]
site.yml

diff --git a/roles/cron/tasks/main.yml b/roles/cron/tasks/main.yml
new file mode 100644 (file)
index 0000000..0750993
--- /dev/null
@@ -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`'
+
index f05b960be923a5f3ad44846daa2a2e16f5507f1e..87f4858d8f1245378023081f2198e02d7af9d4a1 100644 (file)
--- a/site.yml
+++ b/site.yml
@@ -21,4 +21,5 @@
     - lxde
     - tools
     - gnupg
+    - cron
     - contexts/fretlink