main.yml 923 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. - name: Galene binary built
  16. shell:
  17. chdir: /usr/local/src/galene
  18. cmd: go build .
  19. - name: Galene rc file installed
  20. ansible.builtin.copy:
  21. src: galene.rc
  22. dest: /usr/local/etc/rc.d/galene
  23. mode: a+x
  24. - name: Install galene
  25. ansible.builtin.copy:
  26. src: /usr/local/src/galene/galene
  27. dest: /usr/local/bin/galene
  28. remote_src: yes
  29. mode: a+x
  30. notify: Galene restarted
  31. - name: Galene enabled
  32. shell: sysrc galene_enable="YES"
  33. - name: Galene started
  34. service: name=galene state=started