Reload deamons to fix Kibana error on Amazon Linux 2
This commit is contained in:
parent
88585a2e80
commit
a15477300f
@ -93,7 +93,6 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0664
|
mode: 0664
|
||||||
notify: restart kibana
|
|
||||||
tags: configure
|
tags: configure
|
||||||
|
|
||||||
- name: Checking Wazuh-APP version
|
- name: Checking Wazuh-APP version
|
||||||
@ -124,21 +123,30 @@
|
|||||||
args:
|
args:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
creates: /usr/share/kibana/plugins/wazuh/package.json
|
creates: /usr/share/kibana/plugins/wazuh/package.json
|
||||||
notify: restart kibana
|
|
||||||
become: yes
|
become: yes
|
||||||
become_user: kibana
|
become_user: kibana
|
||||||
tags:
|
tags:
|
||||||
- install
|
- install
|
||||||
- skip_ansible_lint
|
- skip_ansible_lint
|
||||||
|
|
||||||
- name: Ensure Kibana started and enabled
|
- name: Reload systemd configuration
|
||||||
|
systemd:
|
||||||
|
daemon_reload: true
|
||||||
|
|
||||||
|
- name: Restart Kibana
|
||||||
|
service:
|
||||||
|
name: kibana
|
||||||
|
enabled: true
|
||||||
|
state: restarted
|
||||||
|
|
||||||
|
- name: Ensure Kibana is started
|
||||||
service:
|
service:
|
||||||
name: kibana
|
name: kibana
|
||||||
enabled: true
|
enabled: true
|
||||||
state: started
|
state: started
|
||||||
|
|
||||||
- import_tasks: RMRedHat.yml
|
- import_tasks: RMRedHat.yml
|
||||||
when: ansible_os_family == 'RedHat'
|
when: ansible_os_family == 'RedHat', 'Amazon'
|
||||||
|
|
||||||
- import_tasks: RMDebian.yml
|
- import_tasks: RMDebian.yml
|
||||||
when: ansible_os_family == 'Debian'
|
when: ansible_os_family == 'Debian'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user