diff --git a/group_vars/laptop.yml b/group_vars/laptop.yml index a4e7f044..63c38b19 100644 --- a/group_vars/laptop.yml +++ b/group_vars/laptop.yml @@ -19,7 +19,6 @@ dotfiles_owner: mg ### mgrote.apt_install_packages programs_extra: - - ifupdown2 - bmon - hddtemp - s-tui diff --git a/playbooks/laptop/i3.yml b/playbooks/laptop/i3.yml index 369650ea..8e2e79e3 100644 --- a/playbooks/laptop/i3.yml +++ b/playbooks/laptop/i3.yml @@ -1,4 +1,4 @@ --- - hosts: laptop roles: - - { role: mgrote.i3, tags: "i3" } + - { role: mgrote.i3, tags: "i3", become: true } diff --git a/playbooks/laptop/polybar.yml b/playbooks/laptop/polybar.yml index aa857ddb..983f748f 100644 --- a/playbooks/laptop/polybar.yml +++ b/playbooks/laptop/polybar.yml @@ -1,4 +1,4 @@ --- - hosts: laptop roles: - - { role: mgrote.polybar, tags: "polybar" } + - { role: mgrote.polybar, tags: "polybar", become: true } diff --git a/roles/mgrote.i3/tasks/main.yml b/roles/mgrote.i3/tasks/main.yml index d9f9f80f..097126bc 100644 --- a/roles/mgrote.i3/tasks/main.yml +++ b/roles/mgrote.i3/tasks/main.yml @@ -5,6 +5,6 @@ name: - i3 - i3lock - - xrandr + - x11-xserver-utils - arandr state: present diff --git a/roles/mgrote.polybar/tasks/main.yml b/roles/mgrote.polybar/tasks/main.yml index 69fef2e7..861932cf 100644 --- a/roles/mgrote.polybar/tasks/main.yml +++ b/roles/mgrote.polybar/tasks/main.yml @@ -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' diff --git a/roles/mgrote.vim/tasks/main.yml b/roles/mgrote.vim/tasks/main.yml index 3e8663ea..d947d63a 100644 --- a/roles/mgrote.vim/tasks/main.yml +++ b/roles/mgrote.vim/tasks/main.yml @@ -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