Skip to content

Instantly share code, notes, and snippets.

@psct
psct / hostname.yml
Created February 26, 2021 16:41
Debian set hostname and adjust /etc/hosts
---
- name: set name, adjust /etc/hosts
hosts: all
become: yes
# order matters!
tasks:
- name: adjust /etc/hosts
replace:
path: /etc/hosts
@psct
psct / dockersetup.yml
Created February 26, 2021 16:44
Debian add docker repository and gpg key and install docker-ce (just for amd64)
---
- name: set up docker & compose
hosts: docker
become: yes
tasks:
- name: update package index
apt:
name: "*"
state: latest
@psct
psct / smbv1bridge.txt
Created July 27, 2021 19:15
Mit Pi OS/Debian eine SMBv1-Brücke bauen / Use Pi OS/Debian as a SMBv1 bridge
# /etc/fstab define share
//192.168.178.2/scans /reshare cifs uid=reuser,gid=reuser,credentials=/root/cred
# /root/cred put credentials for upstream SMBv2/3 server
username=upuser
password=uppassword
domain=example
@psct
psct / traefikbyhand.sh
Created August 18, 2021 17:29
example to run traefik in standalone mode (not within docker)
#!/bin/bash
#
# example to run traefik in standalone mode on a
# linux host (or any other host supported by traefik)
#
# contribution to an article in
# c't magazine 19/21, Page 74
#
# your work:
# - share port 80/443 by your router to this host