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

35 lines
613 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
2023-04-24 11:25:19 +00:00
state: directory
2021-11-14 00:27:54 +00:00
- 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 }}"