Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

19 lines
405B

  1. ---
  2. - hosts:
  3. - desktops
  4. - laptops
  5. remote_user: root
  6. pre_tasks:
  7. - name: ensure acpi tool is installed
  8. apt:
  9. pkg: acpi
  10. - name: ensure host is on AC power
  11. command: acpi -a
  12. register: _acpi_ac_adapter
  13. failed_when: '"off-line" in _acpi_ac_adapter.stdout'
  14. changed_when: false
  15. roles:
  16. - name: display_manager
  17. display_manager_state: maintenance