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.

maintenance.yml 951B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ---
  2. - name: install maintenance mode packages
  3. apt:
  4. pkg: "{{ item }}"
  5. state: installed
  6. with_items:
  7. - yad
  8. - xbindkeys
  9. - feh
  10. notify: restart lightdm
  11. - name: maintenance user
  12. user:
  13. name: maintenance
  14. system: yes
  15. createhome: yes
  16. home: /var/lib/maintenance
  17. notify: restart lightdm
  18. - name: maintenance directory
  19. file:
  20. path: /usr/local/share/maintenance
  21. state: directory
  22. notify: restart lightdm
  23. - name: maintenance xsession desktop
  24. template:
  25. src: maintenance.desktop.j2
  26. dest: /usr/local/share/maintenance/maintenance.desktop
  27. notify: restart lightdm
  28. - name: maintenance xsession script
  29. template:
  30. src: maintenance-xsession.sh.j2
  31. dest: /usr/local/share/maintenance/xsession
  32. mode: u=rwx,g=rx,o=rx
  33. notify: restart lightdm
  34. - name: maintenance xbindkeys
  35. template:
  36. src: maintenance.xbindkeys.j2
  37. dest: /usr/local/share/maintenance/xbindkeys
  38. notify: restart lightdm