Repository navigation
feat(lab-09): Ansible playbook to rebuild the server in one command - #10
Merged
Merged
Conversation
0x48core
commented
Oct 9, 2026
Owner
- site.yml: detects fresh (root:22) vs hardened (admin:ssh_port) by a real SSH login, then runs roles common, users, firewall, ssh, fail2ban, docker, opsforge; idempotent (second run changed=0)
- ssh role: validate with sshd -t, restart (socket-aware), carry the host key to the new port in known_hosts, reconnect, close port 22
- opsforge role: deploy user, proxy network, Traefik from stacks/ with Let's Encrypt merged in when traefik_acme_email is set, hello-api files and .env for deploy.sh
- Inventories: test (fake VPS, test values) and production templates; real hosts.yml and vault.yml git-ignored
- test/fake-vps.sh: disposable Ubuntu 24.04 systemd container with SSH and Docker-in-Docker
- Stacks: router hostnames use ${DOMAIN:-opsforge.localhost}
- Lab 09 guide and knowledge base; roadmap updated
- site.yml: detects fresh (root:22) vs hardened (admin:ssh_port) by a
real SSH login, then runs roles common, users, firewall, ssh,
fail2ban, docker, opsforge; idempotent (second run changed=0)
- ssh role: validate with sshd -t, restart (socket-aware), carry the
host key to the new port in known_hosts, reconnect, close port 22
- opsforge role: deploy user, proxy network, Traefik from stacks/ with
Let's Encrypt merged in when traefik_acme_email is set, hello-api
files and .env for deploy.sh
- Inventories: test (fake VPS, test values) and production templates;
real hosts.yml and vault.yml git-ignored
- test/fake-vps.sh: disposable Ubuntu 24.04 systemd container with
SSH and Docker-in-Docker
- Stacks: router hostnames use ${DOMAIN:-opsforge.localhost}
- Lab 09 guide and knowledge base; roadmap updated
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.