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.

ac-power.yaml 224B

12345678910
  1. ---
  2. - name: ensure acpi tool is installed
  3. apt:
  4. pkg: acpi
  5. - name: ensure host is on AC power
  6. command: acpi -a
  7. register: _acpi_ac_adapter
  8. failed_when: '"off-line" in _acpi_ac_adapter.stdout'
  9. changed_when: false