You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

32 lines
877B

  1. ---
  2. - name: lockscreen environment
  3. template:
  4. src: lockscreen/lockscreen.env.j2
  5. dest: ~/.lockscreen.env
  6. - name: screensaver shell script
  7. template:
  8. src: lockscreen/screensaver.sh.j2
  9. dest: ~/.screensaver.sh
  10. mode: 0755
  11. - name: lockscreen graphical-session service definition
  12. template:
  13. src: lockscreen/lockscreen.service.j2
  14. dest: ~/.config/systemd/user/lockscreen.service
  15. notify: systemd daemon-reload
  16. - name: lockscreen-auto graphical-session service definition
  17. template:
  18. src: lockscreen/lockscreen-auto.service.j2
  19. dest: ~/.config/systemd/user/lockscreen-auto.service
  20. notify: systemd daemon-reload
  21. - name: lockscreen-auto graphical-session service
  22. systemd:
  23. name: lockscreen-auto.service
  24. enabled: "{{ lockscreen_auto_enabled }}"
  25. state: "{{ lockscreen_auto_enabled | ternary('started','stopped') }}"
  26. scope: user