72 lines
1.3 KiB
YAML
72 lines
1.3 KiB
YAML
---
|
|
- name: install required packages for dwm
|
|
become: yes
|
|
apt:
|
|
update_cache: yes
|
|
pkg:
|
|
- build-essential
|
|
- gcc
|
|
- libx11-dev
|
|
- libxft-dev
|
|
- libxinerama-dev
|
|
- libxcb-res0-dev
|
|
- libx11-xcb-dev
|
|
- libyajl-dev
|
|
when: ansible_distribution == "Ubuntu"
|
|
|
|
- name: install required packages for dwm
|
|
become: yes
|
|
community.general.pacman:
|
|
name:
|
|
- gcc
|
|
- base-devel
|
|
- libx11
|
|
- libxft
|
|
- libxinerama
|
|
- libxcb
|
|
- yajl
|
|
when: ansible_distribution == "Archlinux"
|
|
|
|
- name: checkout dwm
|
|
git:
|
|
repo: "{{ git.dwm }}"
|
|
dest: "{{ desktop_src_dir }}/dwm"
|
|
clone: yes
|
|
update: yes
|
|
|
|
- name: build dwm
|
|
make:
|
|
chdir: "{{ desktop_src_dir }}/dwm"
|
|
|
|
- name: ensure that xsessions directory exists
|
|
become: yes
|
|
file:
|
|
path: /usr/share/xsessions
|
|
state: directory
|
|
|
|
- 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: copy run script
|
|
become: yes
|
|
copy:
|
|
src: usr/local/bin/start-dwm
|
|
dest: /usr/local/bin/start-dwm
|
|
mode: '0755'
|
|
|
|
- name: install dwm
|
|
become: yes
|
|
register: make
|
|
make:
|
|
chdir: "{{ desktop_src_dir }}/dwm"
|
|
target: install
|