Skip to content

Instantly share code, notes, and snippets.

@robrant
Created November 7, 2016 12:50
Show Gist options
  • Save robrant/0b371000f7a81404c9ba0fad70378535 to your computer and use it in GitHub Desktop.
Save robrant/0b371000f7a81404c9ba0fad70378535 to your computer and use it in GitHub Desktop.
Synchronise between servers ansible
- name: Install rsync
yum: name=rsync state=latest
tags: filebeat_cert
- name: Sync the cert to the logstash box
synchronize:
src: "{{ cert_path }}/{{ filebeat_cert_name }}"
dest: "{{ cert_path }}/{{ filebeat_cert_name }}"
mode: pull
use_ssh_args: yes
rsync_opts: --no-motd
delegate_to: "{{ elkserver_ip }}"
tags: filebeat_cert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment