Skip to content

feat(lab-09): Ansible playbook to rebuild the server in one command - #10

Merged
0x48core merged 1 commit into
mainfrom
lab/09-ansible
Oct 9, 2026
Merged

0x48core merged 1 commit into
mainfrom
lab/09-ansible

Conversation

@0x48core

@0x48core 0x48core commented Oct 9, 2026

Copy link
Copy Markdown
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>
@0x48core
0x48core merged commit adfc9cf into main Oct 9, 2026
1 check passed
@0x48core
0x48core deleted the lab/09-ansible branch October 9, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant