lab7: Ansible playbook deploying QuickNotes to Vagrant VM#1335
Open
1r444444 wants to merge 7 commits into
Open
lab7: Ansible playbook deploying QuickNotes to Vagrant VM#13351r444444 wants to merge 7 commits into
1r444444 wants to merge 7 commits into
Conversation
Signed-off-by: Irina <irina.bychkova06@mail.ru>
Signed-off-by: Irina <irina.bychkova06@mail.ru>
Ubuntu 22.04 (jammy64), Go 1.24.5 via shell provisioner, port forward 127.0.0.1:18080 -> guest:8080, VirtualBox shared folder for ./app, 2 vCPU / 1024 MB RAM.
Task 1 and Task 2 design questions answered; terminal output placeholders left for VM execution; bonus comparison table scaffold included.
Switch provider to qemu (perk/ubuntu-2204-arm64) for Apple Silicon host. Fill submission with actual vagrant up, curl, snapshot lifecycle outputs.
- ansible/playbook.yaml: idempotent deploy — system user, data dir, binary, seed.json, systemd unit via Jinja2 template, handler-driven restart - ansible/inventory.ini: targets Lab 5 Vagrant VM (127.0.0.1:50022) - ansible/templates/quicknotes.service.j2: unit template with env vars - ansible/files/: static arm64 binary (CGO_ENABLED=0) + seed.json - submissions/lab7.md: PLAY RECAPs, curl proof, all 7 design questions
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.
Summary
ansible/playbook.yaml) deploys QuickNotes to the Lab 5 Vagrant VM viabecome: truequicknotes, data directory/var/lib/quicknotes, copies static binary and seed.json, renders systemd unit from Jinja2 template, enables and starts the servicerestart quicknotesfires only when the binary or unit file changesgather_facts: false— no facts needed since all values come from explicit variablesTest plan
changed=7, serviceactive (running),curl :18080/health→{"notes":4,"status":"ok"}changed=0(full idempotency confirmed)listen_addr=:9090): onlytemplatetask + handler changed (changed=2)--check --diffwithlisten_addr=:7070: exact diff shown, no changes appliedsubmissions/lab7.md