l33 (#108)
update cache when become vim when permissions xrandr umbenannt ifupdown2 entfernt Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#108 Co-Authored-By: mg <mg@noreply.git.mgrote.net> Co-Committed-By: mg <mg@noreply.git.mgrote.net>
This commit is contained in:
parent
b3e8d0967b
commit
08ad1e5e53
6 changed files with 12 additions and 6 deletions
|
@ -19,7 +19,6 @@
|
|||
dotfiles_owner: mg
|
||||
### mgrote.apt_install_packages
|
||||
programs_extra:
|
||||
- ifupdown2
|
||||
- bmon
|
||||
- hddtemp
|
||||
- s-tui
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
---
|
||||
- hosts: laptop
|
||||
roles:
|
||||
- { role: mgrote.i3, tags: "i3" }
|
||||
- { role: mgrote.i3, tags: "i3", become: true }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
---
|
||||
- hosts: laptop
|
||||
roles:
|
||||
- { role: mgrote.polybar, tags: "polybar" }
|
||||
- { role: mgrote.polybar, tags: "polybar", become: true }
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
name:
|
||||
- i3
|
||||
- i3lock
|
||||
- xrandr
|
||||
- x11-xserver-utils
|
||||
- arandr
|
||||
state: present
|
||||
|
|
|
@ -7,35 +7,40 @@
|
|||
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
|
||||
register: rmbitmap
|
||||
|
||||
- name: update fc-cache
|
||||
become: true
|
||||
ansible.builtin.shell: fc-cache
|
||||
when: gitcheckout.rmbitmap
|
||||
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'
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
repo: "{{ vim_vundle_repo_url }}"
|
||||
dest: "{{ vim_vundle_path }}"
|
||||
depth: 1
|
||||
register: repo_cloned
|
||||
|
||||
- name: set owner recursive for repo
|
||||
file:
|
||||
|
@ -25,6 +26,7 @@
|
|||
owner: mg
|
||||
group: mg
|
||||
recurse: yes
|
||||
when: repo_cloned.changed == true
|
||||
|
||||
- name: Vundle - PluginInstall
|
||||
ansible.builtin.shell: yes | vim -c PluginInstall -c qall
|
||||
|
|
Loading…
Reference in a new issue