bugs_laptop (#136)

Merge branch 'master' into bugs_laptop

vars

polybar tools

tmux become true

doku

xnview

package feh

vars

playbook sources

taks linux mint

polybar

vivaldi

alacritty

siji

ufw

apt sources nicht bei irantu

ripgrep

siji bug

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#136
Co-Authored-By: mg <mg@noreply.git.mgrote.net>
Co-Committed-By: mg <mg@noreply.git.mgrote.net>
This commit is contained in:
Michael Grote 2021-06-29 13:58:31 +02:00
parent 486fbb9731
commit a0b88b4aee
13 changed files with 98 additions and 22 deletions

View file

@ -191,7 +191,7 @@
- vim
- rsync
- at
- rg
- ripgrep
programs_only_physical:
- hddtemp
- ipmitool

View file

@ -32,9 +32,12 @@
- gnome-tweaks
- powertop
- caja
- xrandr
- x11-xserver-utils # xrandr
- arandr
- keepassxc
- feh # i3 wallpaper
- yad # polybar popup-calendar
- xdotool # polybar popup-calendar
### mgrote.apt_manage_sources
manage_sources_apt_proxy_url: ""
### mgrote.ntp_chrony_server
@ -43,3 +46,10 @@
- address: pool.ntp.org
options: iburst #optionaler parameter
ntp_chrony_logging: false # logging an/aus
### oefenweb.ufw
ufw_rules:
- rule: allow
to_port: 22
protocol: tcp
comment: 'ssh'
from_ip: 192.168.2.0/24

View file

@ -6,3 +6,4 @@
- { role: mgrote.deactivate_caps, tags: "caps", become: true }
- { role: mgrote.alacritty, tags: "alacritty", become: true }
- { role: mgrote.vivaldi, tags: "vivaldi", become: true }
- { role: mgrote.xnview, tags: "xnview", become: true }

View file

@ -1,4 +1,5 @@
---
- hosts: all
roles:
- { role: mgrote.apt_manage_sources, tags: "apt_sources" }
- { role: mgrote.apt_manage_sources, tags: "apt_sources",
when: "not 'laptop' in group_names" }

View file

@ -1,13 +1,21 @@
---
- name: add ppa
ansible.builtin.apt_repository:
repo: ppa:system76/pop
state: present
filename: alacritty
become: yes
ansible.builtin.shell: add-apt-repository ppa:mmstick76/alacritty -y
args:
creates: "/etc/apt/sources.list.d/mmstick76-alacritty-focal.list"
# - name: add ppa
# ansible.builtin.apt_repository:
# repo: ppa:aslatter/ppa
# state: present
# filename: alacritty
# update_cache: yes
- name: install packages
become: yes
ansible.builtin.package:
name:
- alacritty
- xclip
state: present

View file

@ -3,6 +3,6 @@
become: yes
ansible.builtin.template:
src: "mint_sources.list"
dest: "/etc/apt/sources.list"
dest: "/etc/apt/sources.list.d/official-package-repositories.list"
backup: yes
register: copy_src

View file

@ -1,3 +1,4 @@
---
polybar_siji_repo: https://github.com/stark/siji
polybar_siji_local: /home/mg/siji
polybar_siji_fonts_dir: /home/mg/.fonts

View file

@ -5,6 +5,8 @@
name:
- polybar
- lm-sensors
- brightnessctl
- inotify-tools
state: present
- name: checkout siji font
@ -14,10 +16,18 @@
dest: "{{ polybar_siji_local }}"
register: gitcheckout
- name: create siji dir
become: true
ansible.builtin.file:
path:
- "{{ polybar_siji_fonts_dir }}"
state: directory
- name: install siji-font
become: true
ansible.builtin.shell: /home/mg/siji/install.sh -d /home/mg/.fonts
ansible.builtin.shell: "{{ polybar_siji_local }}/install.sh -d {{ polybar_siji_fonts_dir }}"
args:
chdir: "{{ polybar_siji_local }}"
creates: /home/mg/.fonts
when: gitcheckout.changed
@ -39,4 +49,3 @@
ansible.builtin.user:
name: polybar
group: video

View file

@ -8,6 +8,7 @@
cache_valid_time: 360
- name: Check if "{{ tmux_bashrc_destination }}" exists
become: yes
stat:
path: "{{ tmux_bashrc_destination }}"
register: stat_result

View file

@ -5,4 +5,4 @@ Installiert vivaldi.
### Funktioniert auf
- [x] Ubuntu (>=18.04)
- [x]Linux Mint
- [x] Linux Mint

View file

@ -1,13 +1,25 @@
---
- name: add repo
ansible.builtin.apt_repository:
repo: deb https://repo.vivaldi.com/archive/deb/ stable main
state: present
filename: vivaldi
# - name: add repo
# ansible.builtin.apt_repository:
# repo: deb https://repo.vivaldi.com/archive/deb/ stable main
# state: present
# filename: vivaldi
- name: install packages
become: yes
ansible.builtin.package:
name:
- vivaldi-stable
state: present
# - name: add ppa
# become: yes
# ansible.builtin.shell: add-apt-repository deb https://repo.vivaldi.com/archive/deb/ stable main -y
#args:
# creates: "/etc/apt/sources.list.d/mmstick76-alacritty-focal.list"
# - name: install packages
# become: yes
# ansible.builtin.package:
# name:
# - vivaldi-stable
# state: present
- name: download and install vivaldi
become: true
apt:
deb: https://downloads.vivaldi.com/stable/vivaldi-stable_4.0.2312.33-1_amd64.deb

View file

@ -0,0 +1,8 @@
## mgrote.xnview
### Beschreibung
Installiert xnview.
### Funktioniert auf
- [x] Ubuntu (>=18.04)
- [x] Linux Mint

View file

@ -0,0 +1,25 @@
---
# - name: add repo
# ansible.builtin.apt_repository:
# repo: deb https://repo.vivaldi.com/archive/deb/ stable main
# state: present
# filename: vivaldi
# - name: add ppa
# become: yes
# ansible.builtin.shell: add-apt-repository deb https://repo.vivaldi.com/archive/deb/ stable main -y
#args:
# creates: "/etc/apt/sources.list.d/mmstick76-alacritty-focal.list"
# - name: install packages
# become: yes
# ansible.builtin.package:
# name:
# - vivaldi-stable
# state: present
- name: download and install xnview
become: true
apt:
deb: https://download.xnview.com/XnViewMP-linux-x64.deb