启动elasticsearch
2019-05-08 15:41 divl 阅读(831) 评论(0) 编辑 收藏 举报- name: source env shell: source /etc/profile - name: make elastic permission shell: su - elsearch -c 'chmod +x /opt/elastic/bin/*' - name: start es remote_user: root shell: su - elsearch -c '/opt/elastic/bin/elasticsearch -d'
ansible web --become --become-method=su -K -m shell -a "su - elasticsearch -c '/opt/elasticsearch-6.6.2/bin/elasticsearch -d'" ansible web --become --become-method=su -K -m shell -a 'source /etc/profile && nohup /bin/bash /opt/logstash-6.6.2/bin/logstash &' ansible web --become --become-method=su -K -m shell -a "su - elasticsearch -c 'nohup /opt/kibana-6.6.2-linux-x86_64/bin/kibana &'"