main.yml 478 B

12345678910111213141516171819202122
  1. ---
  2. # configure node-stats for respondd
  3. - name: Clone node-stats repo for respondd.
  4. git:
  5. repo: https://github.com/FreiFunkMuenster/node-stats.git
  6. dest: /opt/node-stats
  7. version: respondd
  8. force: yes
  9. - name: Deploy update.sh script
  10. template:
  11. src: update.sh.j2
  12. dest: /opt/node-stats/update.sh
  13. mode: "u+x,g+x"
  14. - name: Define cron for node-stats.
  15. cron:
  16. name: "node-stats"
  17. minute: "*"
  18. job: "/opt/node-stats/update.sh >/dev/null 2>&1"