Bläddra i källkod

desktop maintenance playbook

master
förälder
incheckning
fceaa2e8ee
1 ändrade filer med 18 tillägg och 0 borttagningar
  1. +18
    -0
      desktop-maintenance.yaml

+ 18
- 0
desktop-maintenance.yaml Visa fil

@@ -0,0 +1,18 @@
---

- hosts:
- desktops
- laptops
remote_user: root
pre_tasks:
- name: ensure acpi tool is installed
apt:
pkg: acpi
- name: ensure host is on AC power
command: acpi -a
register: _acpi_ac_adapter
failed_when: '"off-line" in _acpi_ac_adapter.stdout'
changed_when: false
roles:
- name: display_manager
display_manager_state: maintenance