https://github.com/rssnyder/ansible
configuration as code for my servers
https://github.com/rssnyder/ansible
Last synced: 2 months ago
JSON representation
configuration as code for my servers
- Host: GitHub
- URL: https://github.com/rssnyder/ansible
- Owner: rssnyder
- Created: 2020-11-13T21:01:39.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-13T01:21:38.000Z (over 5 years ago)
- Last Synced: 2025-01-28T12:39:54.755Z (over 1 year ago)
- Language: HTML
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ansible
configuration as code for my servers
## overview
when run together, this configure firewall, dns, vpn, and k3s nodes amung my system of cloud servers. They can all reach eachother over my wireguard vpn network, were my master node in my apartment acts as my hub ( hub configuration not present here )
### docker
install docker, deploy docker-compose template
### domain
install ddclient, register server with [name].rileysnyder.org address
### firewall
install ufw, allow 80, 22, 443
### k3s
install k3s, attach to main cluster
### minio
install minio
### postgres_bak
backup postgres db
### wireguard
install wireguard, connect to main network
### hosts.yml (not shown)
```
all:
vars:
k3s_url: https://10.253.0.10:6443
k3s_token:
wg_public_key:
children:
cloud:
hosts:
oc0:
ansible_host: oc0.rileysnyder.org
ansible_user: ubnutu
dns_domain: oc0
dns_user:
dns_password:
wg_id: 5
wg_private_key:
wg_shared_key:
oc1:
ansible_host: oc1.rileysnyder.org
...
```