You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
896 B

  1. ---
  2. - name: Copy journalbeat binary
  3. copy: src="{{JOURNALBEAT_BINARY}}" dest=/usr/bin/journalbeat mode=0755
  4. notify: restart journalbeat
  5. - name: Create folders
  6. file: "path={{item}} state=directory recurse=yes"
  7. with_items:
  8. - /etc/journalbeat
  9. - /etc/pki/tls/certs
  10. - /usr/share/journalbeat
  11. - /var/log/journalbeat
  12. - name: Copy journalbeat config
  13. template: src=journalbeat.yml.j2 dest=/etc/journalbeat/journalbeat.yml mode=0600
  14. notify: restart journalbeat
  15. - name: Get server certificate for Logz.io
  16. get_url: "url=https://raw.githubusercontent.com/logzio/public-certificates/master/COMODORSADomainValidationSecureServerCA.crt force=yes dest=/etc/pki/tls/certs/COMODORSADomainValidationSecureServerCA.crt"
  17. - name: Copy journalbeat service config
  18. copy: src=journalbeat.service dest=/etc/systemd/system/journalbeat.service
  19. notify:
  20. - reload daemon
  21. - restart journalbeat