main.yml 939 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. - name: Galene deps installed
  2. community.general.pkgng:
  3. name: "git go"
  4. state: latest
  5. - name: Galene source deployed
  6. git:
  7. repo: "https://github.com/jech/galene"
  8. dest: /usr/local/src/galene
  9. accept_hostkey: yes
  10. force: yes
  11. update: yes
  12. - name: limit_unix.go patched to build on FreeBSD
  13. shell:
  14. cmd: 'sed -i -e "s/uint64/int64/g" /usr/local/src/galene/limit/limit_unix.go'
  15. warn: false
  16. - name: Galene binary built
  17. shell:
  18. chdir: /usr/local/src/galene
  19. cmd: go build .
  20. - name: Galene rc file installed
  21. ansible.builtin.copy:
  22. src: galene.rc
  23. dest: /usr/local/etc/rc.d/galene
  24. mode: a+x
  25. - name: Install galene
  26. ansible.builtin.copy:
  27. src: /usr/local/src/galene/galene
  28. dest: /usr/local/bin/galene
  29. remote_src: yes
  30. mode: a+x
  31. notify: Galene restarted
  32. - name: Galene enabled
  33. shell: sysrc galene_enable="YES"
  34. - name: Galene started
  35. service: name=galene state=started