您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910
  1. ---
  2. - name: ensure acpi tool is installed
  3. apt:
  4. pkg: acpi
  5. - name: ensure host is on AC power
  6. command: acpi -a
  7. register: _acpi_ac_adapter
  8. failed_when: '"off-line" in _acpi_ac_adapter.stdout'
  9. changed_when: false