Loading...

Monit

Monit reload on test servers only

/bin/ansible test -i /opt/ansible/hosts -m shell -a "sudo monit reload"

Logstash

Query status

/bin/ansible all  -i /opt/ansible/hosts_prod -m shell -a "sudo /opt/logstash/logstash status"

Stop

/bin/ansible all  -i /opt/ansible/hosts -m shell -a "sudo monit stop logstash"

Start

/bin/ansible all -i hosts -m shell -a "sudo /opt/logstash/logstash status"

Deinstall

/bin/ansible all -i hosts_prod -m shell -a "sudo yum remove six-fo-logstash.noarch -y"

Copy

Copy file

/bin/ansible all -i /opt/ansible/hosts_prod -m copy -a "src=/etc/opt/monit/logstash dest=/etc/opt/monit/logstash"

Take default host lists

/bin/ansible all -m copy -a "src=/etc/opt/six/fo/logstash/901_output_prod_es.conf dest=/etc/opt/six/fo/logstash/901_output_prod_es.conf"