diff --git a/playbook/host-standalone b/playbook/host-standalone index bd870b9766f02c5dae478bbb0295f30e6404ad1d..5cf08107aa22db646b0fffbb6c466c62865daa5e 100644 --- a/playbook/host-standalone +++ b/playbook/host-standalone @@ -1,2 +1,2 @@ [standalone] -0.0.0.0 +10.41.160.164 diff --git a/playbook/standalone.yml b/playbook/standalone.yml index 9b0131d9eb83570070f8dad2dae198f11d27dec9..f0889e8d3699ffb09024f44c902024841ad5d300 100644 --- a/playbook/standalone.yml +++ b/playbook/standalone.yml @@ -29,10 +29,10 @@ args: chdir: /root/ when: arch == aarch64 - - name: add elk user - shell: groupadd elk && useradd elk -g elk + - name: add elastic user + shell: groupadd elastic && useradd elastic -g elastic - name: chown /opt/elasticsearch-7.17.16/ - shell: chown -R elk:elk /opt/elasticsearch-7.17.16/ + shell: chown -R elastic:elastic /opt/elasticsearch-7.17.16/ - name: change jvms lineinfile: path: /opt/elasticsearch-7.17.16/config/jvm.options @@ -46,4 +46,26 @@ line: '-Xmx4g' backrefs: yes - name: start elasticsearch - shell: nohup /opt/elasticsearch-7.17.16/bin/elasticsearch -d & \ No newline at end of file + shell: nohup /opt/elasticsearch-7.17.16/bin/elasticsearch -d & + - name: get kibana from official website + shell: wget https://artifacts.elastic.co/downloads/kibana/kibana-7.17.16-linux-x86_64.tar.gz --no-check-certificate + args: + chdir: /root/ + when: arch == x86_64 + - name: unzip tar.gz + shell: tar -xzvf kibana-7.17.16-linux-x86_64.tar.gz -C /opt + args: + chdir: /root/ + when: arch == x86_64 + - name: get elasticsearch from official website + shell: wget https://artifacts.elastic.co/downloads/kibana/kibana-7.17.16-linux-aarch64.tar.gz --no-check-certificate + args: + chdir: /root/ + when: arch == aarch64 + - name: unzip tar.gz + shell: tar -xzvf kibana-7.17.16-linux-aarch64.tar.gz -C /opt + args: + chdir: /root/ + when: arch == aarch64 + - name: start kibana + shell: nohup /opt/kibana-7.17.16/bin/kibana --allow-root &