Created
November 7, 2016 12:50
-
-
Save robrant/0b371000f7a81404c9ba0fad70378535 to your computer and use it in GitHub Desktop.
Synchronise between servers ansible
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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