From 6eddb8495409975ea342f0d4310966eaa98013d0 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sun, 14 Nov 2021 01:27:54 +0100 Subject: [PATCH] Add dwmstatus into dwm role --- roles/dwm/tasks/dwmstatus.yml | 33 +++++++++++++++++++++++++++++++++ roles/dwm/tasks/main.yml | 2 ++ roles/dwm/vars/main.yml | 2 ++ 3 files changed, 37 insertions(+) create mode 100644 roles/dwm/tasks/dwmstatus.yml diff --git a/roles/dwm/tasks/dwmstatus.yml b/roles/dwm/tasks/dwmstatus.yml new file mode 100644 index 0000000..2ef3733 --- /dev/null +++ b/roles/dwm/tasks/dwmstatus.yml @@ -0,0 +1,33 @@ +--- +- 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 }}" diff --git a/roles/dwm/tasks/main.yml b/roles/dwm/tasks/main.yml index 4427c5a..57f378d 100644 --- a/roles/dwm/tasks/main.yml +++ b/roles/dwm/tasks/main.yml @@ -4,3 +4,5 @@ - import_tasks: dwm.yml - import_tasks: st-term.yml + +- import_tasks: dwmstatus.yml diff --git a/roles/dwm/vars/main.yml b/roles/dwm/vars/main.yml index 0bcf2db..81f0e74 100644 --- a/roles/dwm/vars/main.yml +++ b/roles/dwm/vars/main.yml @@ -3,3 +3,5 @@ dwm: repo: https://github.com/pgrondek/dwm.git st: repo: https://github.com/pgrondek/stterm.git +dwmstatus: + repo: https://git.grondek.pl/pgrondek/dwmstatus.git