laptop (#138)
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:
parent
ec33333916
commit
02a6c6d5a7
16 changed files with 57 additions and 56 deletions
|
@ -15,10 +15,15 @@
|
||||||
local_path: "/home/mg/.bash_aliases"
|
local_path: "/home/mg/.bash_aliases"
|
||||||
- repo_path: "{{ dotfiles_repo_path}}/alacritty/alacritty.yml"
|
- repo_path: "{{ dotfiles_repo_path}}/alacritty/alacritty.yml"
|
||||||
local_path: "/home/mg/.config/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:
|
dotfiles_dirs:
|
||||||
- path: /home/mg/.config/i3
|
- path: /home/mg/.config/i3
|
||||||
- path: /home/mg/.config/polybar
|
- path: /home/mg/.config/polybar
|
||||||
- path: /home/mg/.config/alacritty
|
- path: /home/mg/.config/alacritty
|
||||||
|
- path: /home/mg/.config/.ssh
|
||||||
dotfiles_owner: mg
|
dotfiles_owner: mg
|
||||||
### mgrote.apt_install_packages
|
### mgrote.apt_install_packages
|
||||||
programs_extra:
|
programs_extra:
|
||||||
|
@ -32,12 +37,8 @@
|
||||||
- gnome-tweaks
|
- gnome-tweaks
|
||||||
- powertop
|
- powertop
|
||||||
- caja
|
- caja
|
||||||
- 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
|
||||||
|
|
|
@ -3,3 +3,4 @@ all:
|
||||||
laptop:
|
laptop:
|
||||||
hosts:
|
hosts:
|
||||||
irantu.grote.lan:
|
irantu.grote.lan:
|
||||||
|
mint.grote.lan:
|
||||||
|
|
|
@ -7,3 +7,4 @@
|
||||||
- { 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 }
|
- { role: mgrote.xnview, tags: "xnview", become: true }
|
||||||
|
- { role: mgrote.atom, tags: "atom", become: true }
|
||||||
|
|
|
@ -1,16 +1,10 @@
|
||||||
---
|
---
|
||||||
- name: add ppa
|
- name: add ppa
|
||||||
become: yes
|
ansible.builtin.apt_repository:
|
||||||
ansible.builtin.shell: add-apt-repository ppa:mmstick76/alacritty -y
|
repo: ppa:mmstick76/alacritty
|
||||||
args:
|
state: present
|
||||||
creates: "/etc/apt/sources.list.d/mmstick76-alacritty-focal.list"
|
filename: alacritty
|
||||||
|
update_cache: yes
|
||||||
# - 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
|
||||||
|
|
7
roles/mgrote.atom/README.md
Normal file
7
roles/mgrote.atom/README.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
## mgrote.atom
|
||||||
|
### Beschreibung
|
||||||
|
Installiert atom.
|
||||||
|
|
||||||
|
|
||||||
|
### Funktioniert auf
|
||||||
|
- [x] Ubuntu (>=18.04)
|
2
roles/mgrote.atom/defaults/main.yml
Normal file
2
roles/mgrote.atom/defaults/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
atom_deb_url: https://github.com/atom/atom/releases/download/v1.57.0/atom-amd64.deb
|
5
roles/mgrote.atom/tasks/main.yml
Normal file
5
roles/mgrote.atom/tasks/main.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
- name: download and install atom
|
||||||
|
become: true
|
||||||
|
apt:
|
||||||
|
deb: "{{ atom_deb_url }}"
|
|
@ -5,6 +5,12 @@
|
||||||
name: acl
|
name: acl
|
||||||
state: present
|
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.
|
- name: Ensure dotfiles repository is cloned locally.
|
||||||
git:
|
git:
|
||||||
repo: "{{ dotfiles_repo_url }}"
|
repo: "{{ dotfiles_repo_url }}"
|
||||||
|
@ -12,6 +18,12 @@
|
||||||
depth: 1
|
depth: 1
|
||||||
register: git_clone
|
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
|
- name: set owner recursive for repo
|
||||||
file:
|
file:
|
||||||
path: "{{ dotfiles_repo_path }}"
|
path: "{{ dotfiles_repo_path }}"
|
||||||
|
|
|
@ -5,7 +5,9 @@
|
||||||
name:
|
name:
|
||||||
- i3
|
- i3
|
||||||
- i3lock
|
- i3lock
|
||||||
- x11-xserver-utils
|
|
||||||
- arandr
|
- arandr
|
||||||
- feh
|
- x11-xserver-utils # xrandr
|
||||||
|
- feh # wallpaper
|
||||||
|
- rofi
|
||||||
|
- xautolock #bildschirmsperre nach x min
|
||||||
state: present
|
state: present
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
- lm-sensors
|
- lm-sensors
|
||||||
- brightnessctl
|
- brightnessctl
|
||||||
- inotify-tools
|
- inotify-tools
|
||||||
|
- yad # polybar popup-calendar
|
||||||
|
- xdotool # polybar popup-calendar
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: checkout siji font
|
- name: checkout siji font
|
||||||
|
@ -42,10 +44,3 @@
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.shell: fc-cache
|
ansible.builtin.shell: fc-cache
|
||||||
when: gitcheckout.changed
|
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
|
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
---
|
|
||||||
acng_server_exthreshold: "60"
|
|
||||||
acng_server_port: 9999
|
|
|
@ -13,7 +13,7 @@
|
||||||
src: "timeshift.json"
|
src: "timeshift.json"
|
||||||
dest: "/etc/timeshift/timeshift.json"
|
dest: "/etc/timeshift/timeshift.json"
|
||||||
|
|
||||||
- name: create restic cronjob
|
- name: create timeshift cronjob
|
||||||
become: yes
|
become: yes
|
||||||
ansible.builtin.cron:
|
ansible.builtin.cron:
|
||||||
name: restic
|
name: restic
|
||||||
|
|
2
roles/mgrote.vivaldi/defaults/main.yml
Normal file
2
roles/mgrote.vivaldi/defaults/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
xnview_deb_url: https://downloads.vivaldi.com/stable/vivaldi-stable_4.0.2312.33-1_amd64.deb
|
|
@ -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
|
- name: download and install vivaldi
|
||||||
become: true
|
become: true
|
||||||
apt:
|
apt:
|
||||||
deb: https://downloads.vivaldi.com/stable/vivaldi-stable_4.0.2312.33-1_amd64.deb
|
deb: "{{ xnview_deb_url }}"
|
||||||
|
|
2
roles/mgrote.xnview/defaults/main.yml
Normal file
2
roles/mgrote.xnview/defaults/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
xnview_deb_url: https://download.xnview.com/XnViewMP-linux-x64.deb
|
|
@ -22,4 +22,4 @@
|
||||||
- name: download and install xnview
|
- name: download and install xnview
|
||||||
become: true
|
become: true
|
||||||
apt:
|
apt:
|
||||||
deb: https://download.xnview.com/XnViewMP-linux-x64.deb
|
deb: "{{ xnview_deb_url }}"
|
||||||
|
|
Loading…
Reference in a new issue