您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。
|
- ---
-
- - 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
|