浏览代码

new ansible apt module format

master
父节点
当前提交
24089bf8ae
共有 2 个文件被更改,包括 17 次插入20 次删除
  1. +13
    -15
      tasks/main.yml
  2. +4
    -5
      tasks/maintenance.yml

+ 13
- 15
tasks/main.yml 查看文件

@@ -7,25 +7,23 @@

- name: make sure no other display managers are installed
apt:
name: "{{ item }}"
pkg:
- slim
- gdm3
- kdm
- sddm
state: absent
with_items:
- slim
- gdm3
- kdm
- sddm

- name: install packages
apt:
pkg: "{{ item }}"
with_items:
- xserver-xorg
- xserver-xorg-video-all
- xserver-xorg-input-all
- x11-xserver-utils
- lightdm
- lightdm-gtk-greeter
- onboard
pkg:
- xserver-xorg
- xserver-xorg-video-all
- xserver-xorg-input-all
- x11-xserver-utils
- lightdm
- lightdm-gtk-greeter
- onboard
notify: restart lightdm

- import_tasks: maintenance.yml


+ 4
- 5
tasks/maintenance.yml 查看文件

@@ -2,11 +2,10 @@

- name: install maintenance mode packages
apt:
name: "{{ item }}"
with_items:
- yad
- xbindkeys
- feh
name:
- yad
- xbindkeys
- feh
notify: restart lightdm

- name: maintenance user


正在加载...
取消
保存