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