Skip to content

Lab 7 β€” Deploy QuickNotes via Ansible (selysecr332)#1219

Open
selysecr332 wants to merge 6 commits into
inno-devops-labs:mainfrom
selysecr332:feature/lab7
Open

Lab 7 β€” Deploy QuickNotes via Ansible (selysecr332)#1219
selysecr332 wants to merge 6 commits into
inno-devops-labs:mainfrom
selysecr332:feature/lab7

Conversation

@selysecr332

Copy link
Copy Markdown

Summary

  • Task 1: Idempotent Ansible playbook deploys QuickNotes to the Lab 5 Vagrant VM (user, copy, template, systemd + handler).
  • Task 2: Second run changed=0; listen_addr tweak updates only the template and fires restart quicknotes; --check --diff captured.
  • Bonus: ansible-pull + systemd timer on the VM; push β†’ reconcile in ~67s (GitOps loop).

Submission

Full write-up: submissions/lab7.md

Ansible files: ansible/

Mahmoud Hassan β€” selysecr332

Test plan

  • ansible-playbook -i ansible/inventory.ini ansible/playbook.yaml β€” first run changed=7, second run changed=0
  • Health check from host: Invoke-RestMethod http://127.0.0.1:18080/health β†’ status=ok
  • Variable override -e quicknotes_listen_addr=:9090 β€” template changed=1 + handler fired
  • --check --diff preview captured
  • Bonus: ansible-pull.timer active; Git push β†’ VM reconciled without host ansible-playbook

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