Skip to content

Lab 7 — Deploy QuickNotes via Ansible#1208

Open
giselesikeh wants to merge 5 commits into
inno-devops-labs:mainfrom
giselesikeh:feature/lab7
Open

Lab 7 — Deploy QuickNotes via Ansible#1208
giselesikeh wants to merge 5 commits into
inno-devops-labs:mainfrom
giselesikeh:feature/lab7

Conversation

@giselesikeh

Copy link
Copy Markdown

Goal

Deploy QuickNotes to the Lab 5 VirtualBox VM using Ansible and prove idempotency.

Changes

  • Added ansible/inventory.ini for the Lab 5 VM target.
  • Added ansible/playbook.yaml to create the quicknotes user, data directory, binary, systemd unit, and service state.
  • Added ansible/templates/quicknotes.service.j2 for the QuickNotes systemd service.
  • Added the static QuickNotes binary at ansible/files/quicknotes.
  • Updated submissions/lab7.md with Task 1, Task 2, and bonus evidence.

Testing

  • Ran ansible-playbook -i ansible/inventory.ini ansible/playbook.yaml --syntax-check.
  • Ran ansible-playbook -i ansible/inventory.ini ansible/playbook.yaml --check.
  • Ran the real playbook and verified QuickNotes was active with systemd.
  • Verified health endpoint with curl -s http://localhost:18080/health.
  • Re-ran the playbook and confirmed changed=0.
  • Changed one template variable and confirmed only the template changed and the restart handler fired.
  • Ran --check --diff and captured the rendered systemd unit diff.
  • Completed bonus ansible-pull timer test and confirmed VM convergence from Git.

Checklist

  • Title is a clear sentence (≤ 70 chars)
  • Commits are signed (git log --show-signature)
  • submissions/lab7.md updated

Signed-off-by: giselesikeh <giselesikeh17@gmail.com>
Signed-off-by: giselesikeh <giselesikeh17@gmail.com>
Signed-off-by: giselesikeh <giselesikeh17@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