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