This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
ka
/
ansible-role-simple-desktop
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
ensure hosts are on AC power
master
Markus Brechtel
6 years ago
parent
4a70648312
commit
7aaac16931
2 changed files
with
12 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+10
-0
tasks/ac-power.yaml
+2
-0
tasks/main.yaml
+ 10
- 0
tasks/ac-power.yaml
View File
@@ -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
+ 2
- 0
tasks/main.yaml
View File
@@ -1,5 +1,7 @@
---
- import_tasks: ac-power.yaml
- import_role:
name: display_manager
vars:
Write
Preview
Loading…
Cancel
Save