homeserver/roles/mgrote.polybar/tasks/main.yml
mg 451bb91a99 playbooks sortiert (#109)
bugfix

laptop in user vars

laptop von group zu host vars

polybar dependencie

playbboks verschoben

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#109
Co-Authored-By: mg <mg@noreply.git.mgrote.net>
Co-Committed-By: mg <mg@noreply.git.mgrote.net>
2021-06-07 19:34:38 +02:00

47 lines
1.1 KiB
YAML

---
- name: install packages
become: yes
ansible.builtin.package:
name:
- polybar
- lm-sensors
state: present
- name: checkout siji font
become: true
ansible.builtin.git:
repo: "{{ polybar_siji_repo }}"
dest: "{{ polybar_siji_local }}"
register: gitcheckout
- name: install siji-font
become: true
ansible.builtin.shell: /home/mg/siji/install.sh -d /home/mg/.fonts
args:
creates: /home/mg/.fonts
when: gitcheckout.changed
- name: remove bitmap-file
become: true
ansible.builtin.file:
path: /etc/fonts/conf.d/70-no-bitmaps.conf
state: absent
when: gitcheckout.changed
- name: update fc-cache
become: true
ansible.builtin.shell: fc-cache
when: gitcheckout.changed
- name: add user polybar to group video
# https://github.com/polybar/polybar/wiki/Module:-backlight
become: true
ansible.builtin.user:
name: polybar
group: video
- name: change permission for /sys/class/backlight/
become: true
ansible.builtin.file:
path: /sys/class/backlight/
mode: '0666'