[WIP] auto install desktop environment
This commit is contained in:
parent
770a7da908
commit
9beb10a985
4
localhost.yml
Normal file
4
localhost.yml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- desktop
|
BIN
roles/desktop/files/usr/share/icons/dwm.png
Normal file
BIN
roles/desktop/files/usr/share/icons/dwm.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 178 B |
7
roles/desktop/files/usr/share/xsessions/dwm.desktop
Normal file
7
roles/desktop/files/usr/share/xsessions/dwm.desktop
Normal file
@ -0,0 +1,7 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=Dwm
|
||||
Comment=Dynamic window manager
|
||||
Exec=dwm
|
||||
Icon=dwm
|
||||
Type=XSession
|
39
roles/desktop/tasks/dwm.yml
Normal file
39
roles/desktop/tasks/dwm.yml
Normal file
@ -0,0 +1,39 @@
|
||||
---
|
||||
- name: install required packages
|
||||
apt:
|
||||
update_cache: yes
|
||||
pkg:
|
||||
- git
|
||||
- make
|
||||
- libx11-dev
|
||||
- libxft-dev
|
||||
- libxinerama-dev
|
||||
|
||||
- name: checkout
|
||||
shell:
|
||||
cmd: |
|
||||
mkdir -p ~/src
|
||||
cd ~/src
|
||||
git clone {{ dwm-repo }}
|
||||
|
||||
- name: build dwm
|
||||
make:
|
||||
chdir: ~/src/dwm
|
||||
|
||||
- name: copy xsession
|
||||
become: yes
|
||||
copy:
|
||||
src: usr/share/xsessions/dwm.desktop
|
||||
dest: /usr/share/xsessions/dwm.desktop
|
||||
|
||||
- name: copy icon
|
||||
become: yes
|
||||
copy:
|
||||
src: usr/share/icons/dwm.png
|
||||
dest: /usr/share/icons/dwm.png
|
||||
|
||||
- name: install dwm
|
||||
become: yes
|
||||
make:
|
||||
chdir: ~/src/dwm
|
||||
target: install
|
4
roles/desktop/tasks/main.yml
Normal file
4
roles/desktop/tasks/main.yml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
- import_tasks: setup.yml
|
||||
|
||||
- import_tasks: dwm.yml
|
9
roles/desktop/tasks/setup.yml
Normal file
9
roles/desktop/tasks/setup.yml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
- block:
|
||||
become: yes
|
||||
- name: install git and make
|
||||
apt:
|
||||
update_cache: yes
|
||||
pkg:
|
||||
- git
|
||||
- make
|
3
roles/desktop/vars/main.yml
Normal file
3
roles/desktop/vars/main.yml
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
dwm-repo: https://github.com/pgrondek/dwm.git
|
||||
st-repo: https://github.com/pgrondek/stterm.git
|
Loading…
Reference in New Issue
Block a user