diff options
author | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-06 23:47:55 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-06 23:47:55 +0100 |
commit | 8d6f2cdad4e9b2e14cf16f5a9c3edadd2e65e638 (patch) | |
tree | 01204afedde57a64dacfd6bf88dbca0d742a7fc6 /roles | |
parent | d03cede672edcf559379ca0b12c80fd7b92cfb18 (diff) | |
download | Ansible-8d6f2cdad4e9b2e14cf16f5a9c3edadd2e65e638.tar.gz Ansible-8d6f2cdad4e9b2e14cf16f5a9c3edadd2e65e638.tar.zst Ansible-8d6f2cdad4e9b2e14cf16f5a9c3edadd2e65e638.zip |
Add crontabs
Diffstat (limited to 'roles')
-rw-r--r-- | roles/cron/tasks/main.yml | 32 |
1 files changed, 32 insertions, 0 deletions
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 @@ | |||
1 | --- | ||
2 | - name: xdg runtime env | ||
3 | cron: | ||
4 | name: XDG_RUNTIME_DIR | ||
5 | env: true | ||
6 | job: "{{ lookup('env', 'XDG_RUNTIME_DIR') }}" | ||
7 | - name: xdg current desktop env | ||
8 | cron: | ||
9 | name: XDG_CURRENT_DESKTOP | ||
10 | env: true | ||
11 | job: LXDE | ||
12 | - name: desktop session env | ||
13 | cron: | ||
14 | name: DESKTOP_SESSION | ||
15 | env: true | ||
16 | job: LXDE | ||
17 | - name: display env | ||
18 | cron: | ||
19 | name: DISPLAY | ||
20 | env: true | ||
21 | job: ":0" | ||
22 | - name: xauthority env | ||
23 | cron: | ||
24 | name: XAUTHORITY | ||
25 | env: true | ||
26 | job: "{{ lookup('env', 'XDG_RUNTIME_DIR') }}/Xauthority" | ||
27 | - name: change wallpaper | ||
28 | cron: | ||
29 | name: change wallpaper | ||
30 | minute: 0 | ||
31 | job: 'pcmanfm -w `ls -d -1 $HOME/Backgrounds/* | shuf -n 1`' | ||
32 | |||