2020-07-01 11:45:11 +00:00
|
|
|
---
|
2020-07-02 10:04:22 +00:00
|
|
|
- name: install required packages for dwm
|
2020-07-01 13:49:46 +00:00
|
|
|
become: yes
|
2020-07-01 11:45:11 +00:00
|
|
|
apt:
|
|
|
|
update_cache: yes
|
|
|
|
pkg:
|
|
|
|
- git
|
|
|
|
- make
|
2020-07-01 14:45:35 +00:00
|
|
|
- build-essential
|
|
|
|
- gcc
|
2020-07-01 11:45:11 +00:00
|
|
|
- libx11-dev
|
|
|
|
- libxft-dev
|
|
|
|
- libxinerama-dev
|
|
|
|
- libxcb-res0-dev
|
|
|
|
- libx11-xcb-dev
|
|
|
|
|
2020-07-02 10:04:22 +00:00
|
|
|
- name: create src dir
|
|
|
|
file:
|
|
|
|
path: ~/src
|
|
|
|
|
|
|
|
- name: checkout dwm
|
|
|
|
git:
|
|
|
|
repo: "{{ dwm.repo }}"
|
|
|
|
dest: "{{ ansible_user_dir }}/src/dwm"
|
|
|
|
clone: yes
|
|
|
|
update: yes
|
2020-07-01 11:45:11 +00:00
|
|
|
|
|
|
|
- name: build dwm
|
|
|
|
make:
|
2020-07-02 10:04:22 +00:00
|
|
|
chdir: "{{ ansible_user_dir }}/src/dwm"
|
2020-07-01 11:45:11 +00:00
|
|
|
|
|
|
|
- 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
|
2020-07-02 10:04:22 +00:00
|
|
|
register: make
|
2020-07-01 11:45:11 +00:00
|
|
|
make:
|
2020-07-02 10:04:22 +00:00
|
|
|
chdir: "{{ ansible_user_dir }}/src/dwm"
|
2020-07-01 11:45:11 +00:00
|
|
|
target: install
|
2020-07-02 10:04:22 +00:00
|
|
|
|
|
|
|
- name: debug
|
|
|
|
debug: msg="{{ make.stdout }}"
|