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 - vim
- rsync - rsync
- at - at
- rg - ripgrep
programs_only_physical: programs_only_physical:
- hddtemp - hddtemp
- ipmitool - ipmitool

View file

@ -32,9 +32,12 @@
- gnome-tweaks - gnome-tweaks
- powertop - powertop
- caja - caja
- xrandr - x11-xserver-utils # xrandr
- arandr - arandr
- keepassxc - keepassxc
- feh # i3 wallpaper
- yad # polybar popup-calendar
- xdotool # polybar popup-calendar
### mgrote.apt_manage_sources ### mgrote.apt_manage_sources
manage_sources_apt_proxy_url: "" manage_sources_apt_proxy_url: ""
### mgrote.ntp_chrony_server ### mgrote.ntp_chrony_server
@ -43,3 +46,10 @@
- address: pool.ntp.org - address: pool.ntp.org
options: iburst #optionaler parameter options: iburst #optionaler parameter
ntp_chrony_logging: false # logging an/aus 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.deactivate_caps, tags: "caps", become: true }
- { role: mgrote.alacritty, tags: "alacritty", become: true } - { role: mgrote.alacritty, tags: "alacritty", become: true }
- { role: mgrote.vivaldi, tags: "vivaldi", become: true } - { role: mgrote.vivaldi, tags: "vivaldi", become: true }
- { role: mgrote.xnview, tags: "xnview", become: true }

View file

@ -1,4 +1,5 @@
--- ---
- hosts: all - hosts: all
roles: 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 - name: add ppa
ansible.builtin.apt_repository: become: yes
repo: ppa:system76/pop ansible.builtin.shell: add-apt-repository ppa:mmstick76/alacritty -y
state: present args:
filename: alacritty 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 - name: install packages
become: yes become: yes
ansible.builtin.package: ansible.builtin.package:
name: name:
- alacritty - alacritty
- xclip
state: present state: present

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,13 +1,25 @@
--- ---
- name: add repo # - name: add repo
ansible.builtin.apt_repository: # ansible.builtin.apt_repository:
repo: deb https://repo.vivaldi.com/archive/deb/ stable main # repo: deb https://repo.vivaldi.com/archive/deb/ stable main
state: present # state: present
filename: vivaldi # filename: vivaldi
- name: install packages # - name: add ppa
become: yes # become: yes
ansible.builtin.package: # ansible.builtin.shell: add-apt-repository deb https://repo.vivaldi.com/archive/deb/ stable main -y
name: #args:
- vivaldi-stable # creates: "/etc/apt/sources.list.d/mmstick76-alacritty-focal.list"
state: present
# - 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