ansible-desktop/roles/dwm/tasks/st-term.yml
2023-08-26 23:57:26 +02:00

46 lines
921 B
YAML

---
- name: install required packages for st [Ubuntu]
become: yes
apt:
update_cache: yes
pkg:
- fonts-firacode
- fonts-symbola
- libharfbuzz-dev
when: ansible_distribution == "Ubuntu"
- name: install required packages for st [Arch]
become: yes
community.general.pacman:
name:
- ttf-fira-code
- harfbuzz
when: ansible_distribution == "Archlinux"
- name: install required packages for st [AUR]
shell:
cmd:
yay -S --needed --noconfirm fonts-symbola
when: ansible_distribution == "Archlinux"
- name: checkout st
git:
repo: "{{ st.repo }}"
dest: "{{ desktop_src_dir }}/stterm"
clone: yes
update: yes
- name: build st
make:
chdir: "{{ desktop_src_dir }}/stterm"
- name: install st
become: yes
register: make
make:
chdir: "{{ desktop_src_dir }}/stterm"
target: install
- name: debug
debug: msg="{{ make.stdout }}"