Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 545 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 545 Bytes

ansible-cron

Tool to run ansible on repo update

Why?

  1. Automatically run ansible on commit to git repo
  2. Monitor atomated run status: when it was last run and what was last status
  3. Current Ansible pull aproach was found as not handy - it needs ansible install and playbooks checkout on every node

Monitoring

/tmp/ansible_status is used for monitoring. Two metrics are used:

  1. File timestamp - how much time has gone since last script run
  2. File contents should be "ok". If it's not - something happened.