diff --git a/roles/dwm/tasks/dwm.yml b/roles/dwm/tasks/dwm.yml index 8509f0a..10694e4 100644 --- a/roles/dwm/tasks/dwm.yml +++ b/roles/dwm/tasks/dwm.yml @@ -1,5 +1,6 @@ --- - name: install required packages + become: yes apt: update_cache: yes pkg: diff --git a/roles/dwm/tasks/main.yml b/roles/dwm/tasks/main.yml index ad57c3e..4427c5a 100644 --- a/roles/dwm/tasks/main.yml +++ b/roles/dwm/tasks/main.yml @@ -2,3 +2,5 @@ - import_tasks: setup.yml - import_tasks: dwm.yml + +- import_tasks: st-term.yml diff --git a/roles/dwm/tasks/setup.yml b/roles/dwm/tasks/setup.yml index 5376553..b60e7be 100644 --- a/roles/dwm/tasks/setup.yml +++ b/roles/dwm/tasks/setup.yml @@ -1,9 +1,8 @@ --- - block: become: yes - - name: install git and make + - name: install screen locker apt: update_cache: yes pkg: - - git - - make + - i3lock diff --git a/roles/dwm/tasks/st-term.yml b/roles/dwm/tasks/st-term.yml new file mode 100644 index 0000000..6e5828b --- /dev/null +++ b/roles/dwm/tasks/st-term.yml @@ -0,0 +1,31 @@ +--- +- name: install required packages + become: yes + apt: + update_cache: yes + pkg: + - git + - make + +- name: checkout + shell: + cmd: | + mkdir -p ~/src + cd ~/src + git clone {{ st-repo }} + +- name: build st + make: + chdir: ~/src/stterm + +- name: copy icon + become: yes + copy: + src: usr/share/icons/dwm.png + dest: /usr/share/icons/dwm.png + +- name: install st + become: yes + make: + chdir: ~/src/stterm + target: install