25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
123456789101112131415161718 |
- ---
-
- - 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: multiuser
|