dotfiles stash

pip weg

polybar group video

defaukts atom

timeshift aufgeräumt

defaults vivaldi

defaults xnview

doku

xautolock

vars

playbooks

atom

aufgeräumt

testvm

same2

same

bugfix alacritty

i3: rofi

abhängigkeiten

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#138
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-07-01 15:26:45 +02:00
parent ec33333916
commit 02a6c6d5a7
16 changed files with 57 additions and 56 deletions

View File

@ -15,10 +15,15 @@
local_path: "/home/mg/.bash_aliases"
- repo_path: "{{ dotfiles_repo_path}}/alacritty/alacritty.yml"
local_path: "/home/mg/.config/alacritty/alacritty.yml"
- repo_path: "{{ dotfiles_repo_path}}/.ssh/config"
local_path: "/home/mg/.ssh/config"
- repo_path: "/home/mg/Nextcloud/Rest/ssh-keys/heimserver/private_key" # smylink in .ssh-dir
local_path: "/home/mg/.ssh/private_key_heimserver"
dotfiles_dirs:
- path: /home/mg/.config/i3
- path: /home/mg/.config/polybar
- path: /home/mg/.config/alacritty
- path: /home/mg/.config/.ssh
dotfiles_owner: mg
### mgrote.apt_install_packages
programs_extra:
@ -32,12 +37,8 @@
- gnome-tweaks
- powertop
- caja
- 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

View File

@ -3,3 +3,4 @@ all:
laptop:
hosts:
irantu.grote.lan:
mint.grote.lan:

View File

@ -1,9 +1,10 @@
---
- hosts: laptop
roles:
- { role: mgrote.i3, tags: "i3", become: true }
- { role: mgrote.polybar, tags: "polybar", become: true }
- { 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 }
- { role: mgrote.i3, tags: "i3", become: true }
- { role: mgrote.polybar, tags: "polybar", become: true }
- { 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 }
- { role: mgrote.atom, tags: "atom", become: true }

View File

@ -1,16 +1,10 @@
---
- name: add ppa
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
ansible.builtin.apt_repository:
repo: ppa:mmstick76/alacritty
state: present
filename: alacritty
update_cache: yes
- name: install packages
become: yes

View File

@ -0,0 +1,7 @@
## mgrote.atom
### Beschreibung
Installiert atom.
### Funktioniert auf
- [x] Ubuntu (>=18.04)

View File

@ -0,0 +1,2 @@
---
atom_deb_url: https://github.com/atom/atom/releases/download/v1.57.0/atom-amd64.deb

View File

@ -0,0 +1,5 @@
---
- name: download and install atom
become: true
apt:
deb: "{{ atom_deb_url }}"

View File

@ -5,6 +5,12 @@
name: acl
state: present
- name: stash changes
ansible.builtin.shell: git stash
args:
chdir: "{{ dotfiles_repo_path }}"
changed_when: false
- name: Ensure dotfiles repository is cloned locally.
git:
repo: "{{ dotfiles_repo_url }}"
@ -12,6 +18,12 @@
depth: 1
register: git_clone
- name: pop stashed changes
ansible.builtin.shell: git stash pop
args:
chdir: "{{ dotfiles_repo_path }}"
changed_when: false
- name: set owner recursive for repo
file:
path: "{{ dotfiles_repo_path }}"

View File

@ -5,7 +5,9 @@
name:
- i3
- i3lock
- x11-xserver-utils
- arandr
- feh
- x11-xserver-utils # xrandr
- feh # wallpaper
- rofi
- xautolock #bildschirmsperre nach x min
state: present

View File

@ -7,6 +7,8 @@
- lm-sensors
- brightnessctl
- inotify-tools
- yad # polybar popup-calendar
- xdotool # polybar popup-calendar
state: present
- name: checkout siji font
@ -42,10 +44,3 @@
become: true
ansible.builtin.shell: fc-cache
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

View File

@ -1,3 +0,0 @@
---
acng_server_exthreshold: "60"
acng_server_port: 9999

View File

@ -13,7 +13,7 @@
src: "timeshift.json"
dest: "/etc/timeshift/timeshift.json"
- name: create restic cronjob
- name: create timeshift cronjob
become: yes
ansible.builtin.cron:
name: restic

View File

@ -0,0 +1,2 @@
---
xnview_deb_url: https://downloads.vivaldi.com/stable/vivaldi-stable_4.0.2312.33-1_amd64.deb

View File

@ -1,25 +1,5 @@
---
# - 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 vivaldi
become: true
apt:
deb: https://downloads.vivaldi.com/stable/vivaldi-stable_4.0.2312.33-1_amd64.deb
deb: "{{ xnview_deb_url }}"

View File

@ -0,0 +1,2 @@
---
xnview_deb_url: https://download.xnview.com/XnViewMP-linux-x64.deb

View File

@ -22,4 +22,4 @@
- name: download and install xnview
become: true
apt:
deb: https://download.xnview.com/XnViewMP-linux-x64.deb
deb: "{{ xnview_deb_url }}"