2021-06-07 08:40:01 +02:00
|
|
|
---
|
|
|
|
- name: install packages
|
|
|
|
become: yes
|
|
|
|
ansible.builtin.package:
|
|
|
|
name:
|
|
|
|
- polybar
|
2021-06-07 19:34:38 +02:00
|
|
|
- lm-sensors
|
2021-06-07 08:40:01 +02:00
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: checkout siji font
|
2021-06-07 19:06:42 +02:00
|
|
|
become: true
|
2021-06-07 08:40:01 +02:00
|
|
|
ansible.builtin.git:
|
2021-06-07 17:47:50 +02:00
|
|
|
repo: "{{ polybar_siji_repo }}"
|
|
|
|
dest: "{{ polybar_siji_local }}"
|
2021-06-07 08:40:01 +02:00
|
|
|
register: gitcheckout
|
|
|
|
|
|
|
|
- name: install siji-font
|
2021-06-07 19:06:42 +02:00
|
|
|
become: true
|
2021-06-07 08:40:01 +02:00
|
|
|
ansible.builtin.shell: /home/mg/siji/install.sh -d /home/mg/.fonts
|
|
|
|
args:
|
|
|
|
creates: /home/mg/.fonts
|
|
|
|
when: gitcheckout.changed
|
|
|
|
|
|
|
|
- name: remove bitmap-file
|
2021-06-07 19:06:42 +02:00
|
|
|
become: true
|
2021-06-07 08:40:01 +02:00
|
|
|
ansible.builtin.file:
|
|
|
|
path: /etc/fonts/conf.d/70-no-bitmaps.conf
|
|
|
|
state: absent
|
|
|
|
when: gitcheckout.changed
|
|
|
|
|
|
|
|
- name: update fc-cache
|
2021-06-07 19:06:42 +02:00
|
|
|
become: true
|
2021-06-07 08:40:01 +02:00
|
|
|
ansible.builtin.shell: fc-cache
|
2021-06-07 19:06:42 +02:00
|
|
|
when: gitcheckout.changed
|
2021-06-07 08:40:01 +02:00
|
|
|
|
|
|
|
- name: add user polybar to group video
|
|
|
|
# https://github.com/polybar/polybar/wiki/Module:-backlight
|
2021-06-07 19:06:42 +02:00
|
|
|
become: true
|
2021-06-07 08:40:01 +02:00
|
|
|
ansible.builtin.user:
|
|
|
|
name: polybar
|
|
|
|
group: video
|
|
|
|
|