This website works better with JavaScript.
首頁
探索
說明
註冊
登入
ka
/
ansible-role-simple-desktop
關註
1
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
ensure hosts are on AC power
master
Markus Brechtel
6 年之前
父節點
4a70648312
當前提交
7aaac16931
共有
2 個文件被更改
,包括
12 次插入
和
0 次删除
分割檢視
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
查看文件
@@ -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
查看文件
@@ -1,5 +1,7 @@
---
- import_tasks: ac-power.yaml
- import_role:
name: display_manager
vars:
Write
Preview
Loading…
取消
儲存