Pārlūkot izejas kodu

maintenance

master
Markus Brechtel pirms 6 gadiem
revīzija
8c9f0d8e59
2 mainītis faili ar 18 papildinājumiem un 0 dzēšanām
  1. +10
    -0
      tasks/ac-power.yaml
  2. +8
    -0
      tasks/main.yaml

+ 10
- 0
tasks/ac-power.yaml Parādīt failu

@@ -0,0 +1,10 @@
---

- 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

+ 8
- 0
tasks/main.yaml Parādīt failu

@@ -0,0 +1,8 @@
---

- import_tasks: ac-power.yaml

- import_role:
name: display_manager
vars:
display_manager_state: maintenance

Notiek ielāde…
Atcelt
Saglabāt