瀏覽代碼

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}}

Loading…
取消
儲存