瀏覽代碼

maintenance

master
Markus Brechtel 6 年之前
當前提交
8c9f0d8e59
共有 2 個文件被更改,包括 18 次插入0 次删除
  1. +10
    -0
      tasks/ac-power.yaml
  2. +8
    -0
      tasks/main.yaml

+ 10
- 0
tasks/ac-power.yaml 查看文件

@@ -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 查看文件

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

- import_tasks: ac-power.yaml

- import_role:
name: display_manager
vars:
display_manager_state: maintenance

Loading…
取消
儲存