47 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
See also: [whoroles](https://github.com/passmower/passmower/issues/81)
 | 
						|
 | 
						|
# Ansible playbooks
 | 
						|
 | 
						|
This repository contains Ansible playbooks used to configure parts
 | 
						|
of the hackerspace infrastructure:
 | 
						|
 | 
						|
* Kubernetes dependency deployment and upgrading
 | 
						|
* Authorized SSH keys
 | 
						|
* Authoritative DNS server configuration for hackerspace domains
 | 
						|
* Door controller software deployment
 | 
						|
 | 
						|
Most notably out of scope of this repository are:
 | 
						|
 | 
						|
* Kubernetes manifests of applications running on the Kubernetes cluster,
 | 
						|
  they can be found at https://git.k-space.ee/k-space/kube
 | 
						|
* Mikrotik router and switch configurations backed up at
 | 
						|
  https://git.k-space.ee/k-space/rosdump
 | 
						|
 | 
						|
## Contents
 | 
						|
 | 
						|
Once you've checked out repo you can try pinging the hosts:
 | 
						|
 | 
						|
```
 | 
						|
ansible all -m ping
 | 
						|
```
 | 
						|
 | 
						|
Check OS version:
 | 
						|
 | 
						|
```
 | 
						|
ansible all -m shell -a "lsb_release -d"
 | 
						|
```
 | 
						|
 | 
						|
Update SSH authorized keys on the hosts:
 | 
						|
 | 
						|
```
 | 
						|
ansible-playbook update-ssh-config.yaml
 | 
						|
```
 | 
						|
 | 
						|
Update `mjpg-streamer` on the door controllers:
 | 
						|
 | 
						|
```
 | 
						|
ansible doors -m shell \
 | 
						|
  -a "ctr image pull harbor.k-space.ee/k-space/mjpg-streamer:latest"
 | 
						|
```
 | 
						|
For more playbooks refer to `*.yaml` files in this repository
 |