Skip to content

Feature/lab7#1224

Open
fleter wants to merge 3 commits into
inno-devops-labs:mainfrom
fleter:feature/lab7
Open

Feature/lab7#1224
fleter wants to merge 3 commits into
inno-devops-labs:mainfrom
fleter:feature/lab7

Conversation

@fleter

@fleter fleter commented Jun 26, 2026

Copy link
Copy Markdown

Goal

Add an Ansible playbook that deploys QuickNotes to the Lab 5 VirtualBox VM as a systemd service.

Changes

  • Added ansible/playbook.yaml — creates system user, copies static binary, renders systemd unit from Jinja2 template, enables and starts the service with handler-based restarts
  • Added ansible/inventory.ini targeting the Vagrant VM via SSH on port 2222
  • Added ansible/templates/quicknotes.service.j2 — systemd unit with configurable env vars (ADDR, DATA_PATH, SEED_PATH)
  • Added ansible/files/quicknotes — pre-built static Linux binary (CGO_ENABLED=0)
  • Added submissions/lab7.md covering Tasks 1, 2, and Bonus with PLAY RECAPs, idempotency proof, --check --diff output, and design answers

Testing

ansible-playbook -i ansible/inventory.ini ansible/playbook.yaml --check
ansible-playbook -i ansible/inventory.ini ansible/playbook.yaml
curl -s http://localhost:18080/health
ansible-playbook -i ansible/inventory.ini ansible/playbook.yaml # second run: changed=0
ansible-playbook -i ansible/inventory.ini ansible/playbook.yaml --check --diff

Checklist

  • Title is a clear sentence (<= 70 chars)
  • submissions/lab7.md updated
  • ansible/ directory with playbook, inventory, template, binary

fleter added 3 commits June 17, 2026 01:02
Signed-off-by: Ilia Siaglov <ilya.syaglovv@gmail.com>
Signed-off-by: Ilia Siaglov <ilya.syaglovv@gmail.com>
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