summaryrefslogblamecommitdiff
path: root/roles/cron/tasks/main.yml
blob: 74726b9adcd0389f6da4ac2041ea6bbf788989ef (plain) (tree)
1
2
3
4
5
6
7
8
   






                                                     




                                                   



















                                                                



                          
                                                                         
 
---
- name: environment variables
  block:
    - name: xdg runtime env
      cron:
        name: XDG_RUNTIME_DIR
        env: true
        job: "{{ lookup('env', 'XDG_RUNTIME_DIR') }}"
    - name: xdg data env
      cron:
        name: XDG_DATA_HOME
        env: true
        job: "{{ lookup('env', 'XDG_DATA_HOME') }}"
    - 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 $XDG_DATA_HOME/backgrounds/* | shuf -n 1`'