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
|
dotfiles_owner: mg
|
||||||
### mgrote.apt_install_packages
|
### mgrote.apt_install_packages
|
||||||
programs_extra:
|
programs_extra:
|
||||||
- ifupdown2
|
|
||||||
- bmon
|
- bmon
|
||||||
- hddtemp
|
- hddtemp
|
||||||
- s-tui
|
- s-tui
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
---
|
---
|
||||||
- hosts: laptop
|
- hosts: laptop
|
||||||
roles:
|
roles:
|
||||||
- { role: mgrote.i3, tags: "i3" }
|
- { role: mgrote.i3, tags: "i3", become: true }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
---
|
---
|
||||||
- hosts: laptop
|
- hosts: laptop
|
||||||
roles:
|
roles:
|
||||||
- { role: mgrote.polybar, tags: "polybar" }
|
- { role: mgrote.polybar, tags: "polybar", become: true }
|
||||||
|
|
|
@ -5,6 +5,6 @@
|
||||||
name:
|
name:
|
||||||
- i3
|
- i3
|
||||||
- i3lock
|
- i3lock
|
||||||
- xrandr
|
- x11-xserver-utils
|
||||||
- arandr
|
- arandr
|
||||||
state: present
|
state: present
|
||||||
|
|
|
@ -7,35 +7,40 @@
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: checkout siji font
|
- name: checkout siji font
|
||||||
|
become: true
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: "{{ polybar_siji_repo }}"
|
repo: "{{ polybar_siji_repo }}"
|
||||||
dest: "{{ polybar_siji_local }}"
|
dest: "{{ polybar_siji_local }}"
|
||||||
register: gitcheckout
|
register: gitcheckout
|
||||||
|
|
||||||
- name: install siji-font
|
- name: install siji-font
|
||||||
|
become: true
|
||||||
ansible.builtin.shell: /home/mg/siji/install.sh -d /home/mg/.fonts
|
ansible.builtin.shell: /home/mg/siji/install.sh -d /home/mg/.fonts
|
||||||
args:
|
args:
|
||||||
creates: /home/mg/.fonts
|
creates: /home/mg/.fonts
|
||||||
when: gitcheckout.changed
|
when: gitcheckout.changed
|
||||||
|
|
||||||
- name: remove bitmap-file
|
- name: remove bitmap-file
|
||||||
|
become: true
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /etc/fonts/conf.d/70-no-bitmaps.conf
|
path: /etc/fonts/conf.d/70-no-bitmaps.conf
|
||||||
state: absent
|
state: absent
|
||||||
when: gitcheckout.changed
|
when: gitcheckout.changed
|
||||||
register: rmbitmap
|
|
||||||
|
|
||||||
- name: update fc-cache
|
- name: update fc-cache
|
||||||
|
become: true
|
||||||
ansible.builtin.shell: fc-cache
|
ansible.builtin.shell: fc-cache
|
||||||
when: gitcheckout.rmbitmap
|
when: gitcheckout.changed
|
||||||
|
|
||||||
- name: add user polybar to group video
|
- name: add user polybar to group video
|
||||||
# https://github.com/polybar/polybar/wiki/Module:-backlight
|
# https://github.com/polybar/polybar/wiki/Module:-backlight
|
||||||
|
become: true
|
||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
name: polybar
|
name: polybar
|
||||||
group: video
|
group: video
|
||||||
|
|
||||||
- name: change permission for /sys/class/backlight/
|
- name: change permission for /sys/class/backlight/
|
||||||
|
become: true
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /sys/class/backlight/
|
path: /sys/class/backlight/
|
||||||
mode: '0666'
|
mode: '0666'
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
repo: "{{ vim_vundle_repo_url }}"
|
repo: "{{ vim_vundle_repo_url }}"
|
||||||
dest: "{{ vim_vundle_path }}"
|
dest: "{{ vim_vundle_path }}"
|
||||||
depth: 1
|
depth: 1
|
||||||
|
register: repo_cloned
|
||||||
|
|
||||||
- name: set owner recursive for repo
|
- name: set owner recursive for repo
|
||||||
file:
|
file:
|
||||||
|
@ -25,6 +26,7 @@
|
||||||
owner: mg
|
owner: mg
|
||||||
group: mg
|
group: mg
|
||||||
recurse: yes
|
recurse: yes
|
||||||
|
when: repo_cloned.changed == true
|
||||||
|
|
||||||
- name: Vundle - PluginInstall
|
- name: Vundle - PluginInstall
|
||||||
ansible.builtin.shell: yes | vim -c PluginInstall -c qall
|
ansible.builtin.shell: yes | vim -c PluginInstall -c qall
|
||||||
|
|
Loading…
Reference in a new issue