-
Notifications
You must be signed in to change notification settings - Fork 34
/
provision_template_gui.yml
77 lines (66 loc) · 2.35 KB
/
provision_template_gui.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
- name: intall gui packages
apt: pkg={{ item }} state=latest install_recommends=no
loop:
- xserver-xorg-core
- xserver-xorg-input-all
# Basic universal video drivers
- xserver-xorg-video-fbdev
- xserver-xorg-video-vesa
- xinit
# sync time by NTP
- ntpdate
- name: intall xorg video drivers
apt:
state: latest
install_recommends: no
package: "{{ xorg_video_drivers }}"
- name: install gui packages for lxde
apt: pkg={{ item }} state=latest install_recommends=no
loop:
- lxde-core
- lxde-common
- lxde-icon-theme
- lxsession
- lxrandr
- lxterminal
when: gui_window_manager == 'lxde'
- name: install gui packages for jwm
apt: pkg={{ item }} state=latest install_recommends=no
loop:
- jwm
# includes xrandr
- x11-xserver-utils
when: gui_window_manager == 'jwm'
- name: remove dependencies that are no longer required
apt:
autoremove: yes
- name: install additional gui packages
apt: pkg={{ item }} state=latest install_recommends=no
with_items:
- "{{ additional_gui_packages }}"
- name: user bash_profile to autostart X session on first console
template: src=template/home/bash_profile dest=/home/{{ autologin_user }}/.bash_profile owner={{ autologin_user }} mode=0640
- name: user xinitrc
template: src=template/home/.xinitrc dest=/home/{{ autologin_user }}/.xinitrc mode=0755 owner={{ autologin_user }}
# Docs: http://joewing.net/projects/jwm/config-2.3.html
- name: user jwmrc
template: src=template/home/.jwmrc dest=/home/{{ autologin_user }}/.jwmrc mode=0644 owner={{ autologin_user }}
- name: user config directories
file: path={{ item }} state=directory owner={{ autologin_user }}
with_items:
- /home/{{ autologin_user }}/.config
- /home/{{ autologin_user }}/.config/autostart
- /home/{{ autologin_user }}/.local
- /home/{{ autologin_user }}/.local/bin
- name: user scripts
template: src=template/home/local/bin/{{ item }} dest=/home/{{ autologin_user }}/.local/bin/{{ item }} owner={{ autologin_user }} mode=0755
loop:
- create-rdp-shortcuts.sh
- endless-run-vmware-view.sh
- autorun.sh
- name: autostart entries
template: src=template/home/config/autostart/{{ item }} dest=/home/{{ autologin_user }}/.config/autostart/{{ item }} owner={{ autologin_user }} mode=0755
loop:
- create-rdp-shortcuts.desktop
- autorun.desktop
- endless-run-vmware-view.desktop