ansible-desktop/roles/dwm/tasks/dwm.yml
2020-07-02 12:04:32 +02:00

53 lines
927 B
YAML

---
- name: install required packages for dwm
become: yes
apt:
update_cache: yes
pkg:
- git
- make
- build-essential
- gcc
- libx11-dev
- libxft-dev
- libxinerama-dev
- libxcb-res0-dev
- libx11-xcb-dev
- name: create src dir
file:
path: ~/src
- name: checkout dwm
git:
repo: "{{ dwm.repo }}"
dest: "{{ ansible_user_dir }}/src/dwm"
clone: yes
update: yes
- name: build dwm
make:
chdir: "{{ ansible_user_dir }}/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
register: make
make:
chdir: "{{ ansible_user_dir }}/src/dwm"
target: install
- name: debug
debug: msg="{{ make.stdout }}"