]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blob - roles/cron/tasks/main.yml
Put tasks in blocks
[perso/Immae/Config/Ansible.git] / roles / cron / tasks / main.yml
1 ---
2 - name: environment variables
3 block:
4 - name: xdg runtime env
5 cron:
6 name: XDG_RUNTIME_DIR
7 env: true
8 job: "{{ lookup('env', 'XDG_RUNTIME_DIR') }}"
9 - name: xdg current desktop env
10 cron:
11 name: XDG_CURRENT_DESKTOP
12 env: true
13 job: LXDE
14 - name: desktop session env
15 cron:
16 name: DESKTOP_SESSION
17 env: true
18 job: LXDE
19 - name: display env
20 cron:
21 name: DISPLAY
22 env: true
23 job: ":0"
24 - name: xauthority env
25 cron:
26 name: XAUTHORITY
27 env: true
28 job: "{{ lookup('env', 'XDG_RUNTIME_DIR') }}/Xauthority"
29 - name: change wallpaper
30 cron:
31 name: change wallpaper
32 minute: 0
33 job: 'pcmanfm -w `ls -d -1 $HOME/Backgrounds/* | shuf -n 1`'
34