浏览代码

assert valid display_manager_state

master
父节点
当前提交
e02b335402
共有 2 个文件被更改,包括 9 次插入0 次删除
  1. +5
    -0
      tasks/main.yml
  2. +4
    -0
      vars/main.yml

+ 5
- 0
tasks/main.yml 查看文件

@@ -1,5 +1,10 @@
---

- name: assert valid state
assert:
that: display_manager_state in _display_manager_valid_states
msg: "'display_manager_state' must be one of: {{_display_manager_valid_states | join(', ') }}"

- name: make sure no other display managers are installed
apt:
pkg: "{{ item }}"


+ 4
- 0
vars/main.yml 查看文件

@@ -1 +1,5 @@
_display_manager_valid_states:
- multiuser
- maintenance

display_manager_background_image_path: /usr/share/lightdm/background/{{display_manager_background_image}}

正在加载...
取消
保存