ansible-desktop/roles/dwm/tasks/dwmstatus.yml

34 lines
592 B
YAML
Raw Normal View History

2021-11-14 00:27:54 +00:00
---
- name: install required packages for dwmstatus
become: yes
apt:
update_cache: yes
pkg:
- git
- make
- name: create src dir
file:
path: ~/src
- name: checkout dwmstatus
git:
repo: "{{ dwmstatus.repo }}"
dest: "{{ ansible_user_dir }}/src/dwmstatus"
clone: yes
update: yes
- name: build dwmstatus
make:
chdir: "{{ ansible_user_dir }}/src/dwmstatus"
- name: install dwmstatus
become: yes
register: make
make:
chdir: "{{ ansible_user_dir }}/src/dwmstatus"
target: install
- name: debug
debug: msg="{{ make.stdout }}"