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-29 13:58:31 +02:00
|
|
|
- brightnessctl
|
|
|
|
- inotify-tools
|
2021-07-01 15:26:45 +02:00
|
|
|
- yad # polybar popup-calendar
|
|
|
|
- xdotool # polybar popup-calendar
|
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
|
|
|
|
|
2021-06-29 13:58:31 +02:00
|
|
|
- name: create siji dir
|
|
|
|
become: true
|
|
|
|
ansible.builtin.file:
|
|
|
|
path:
|
|
|
|
- "{{ polybar_siji_fonts_dir }}"
|
|
|
|
state: directory
|
|
|
|
|
2021-06-07 08:40:01 +02:00
|
|
|
- name: install siji-font
|
2021-06-07 19:06:42 +02:00
|
|
|
become: true
|
2021-06-29 13:58:31 +02:00
|
|
|
ansible.builtin.shell: "{{ polybar_siji_local }}/install.sh -d {{ polybar_siji_fonts_dir }}"
|
2021-06-07 08:40:01 +02:00
|
|
|
args:
|
2021-06-29 13:58:31 +02:00
|
|
|
chdir: "{{ polybar_siji_local }}"
|
2021-06-07 08:40:01 +02:00
|
|
|
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
|