main.yml 656 B

1234567891011121314151617181920212223242526272829303132
  1. ---
  2. - name: Dependencies installed
  3. community.general.pkgng:
  4. name: git,go
  5. state: latest
  6. - name: Source folder exists
  7. file:
  8. path: /usr/local/src
  9. owner: root
  10. mode: 0755
  11. state: directory
  12. - name: Podgrab source deployed
  13. git:
  14. repo: "https://github.com/akhilrex/podgrab.git"
  15. dest: /usr/local/src/podgrab
  16. accept_hostkey: yes
  17. update: yes
  18. - name: Build podgrab binary
  19. shell:
  20. chdir: /usr/local/src/podgrab
  21. cmd: go build .
  22. - name: Supervisor file installed
  23. copy:
  24. src: supervisor.conf
  25. dest: /usr/local/etc/supervisor/conf.d/podgrab.conf
  26. owner: root
  27. mode: 0644
  28. notify: Supervisor restarted