浏览代码

desktop maintenance playbook

master
父节点
当前提交
fceaa2e8ee
共有 1 个文件被更改,包括 18 次插入0 次删除
  1. +18
    -0
      desktop-maintenance.yaml

+ 18
- 0
desktop-maintenance.yaml 查看文件

@@ -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