exception reload systemd task (#114)
This commit is contained in:
parent
10a0b83be3
commit
e6ba94d4b9
@ -71,7 +71,10 @@
|
|||||||
- name: Reload systemd
|
- name: Reload systemd
|
||||||
systemd: daemon_reload=yes
|
systemd: daemon_reload=yes
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: not (ansible_distribution == "Amazon" and ansible_distribution_major_version == "NA")
|
when:
|
||||||
|
- not (ansible_distribution == "Amazon" and ansible_distribution_major_version == "NA")
|
||||||
|
- not (ansible_distribution == "Ubuntu" and ansible_distribution_version is version('15.04', '<'))
|
||||||
|
- not (ansible_distribution == "Debian" and ansible_distribution_version is version('8', '<'))
|
||||||
|
|
||||||
- name: Ensure Elasticsearch started and enabled
|
- name: Ensure Elasticsearch started and enabled
|
||||||
service:
|
service:
|
||||||
|
|||||||
@ -12,7 +12,10 @@
|
|||||||
- name: Reload systemd
|
- name: Reload systemd
|
||||||
systemd: daemon_reload=yes
|
systemd: daemon_reload=yes
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: not (ansible_distribution == "Amazon" and ansible_distribution_major_version == "NA")
|
when:
|
||||||
|
- not (ansible_distribution == "Amazon" and ansible_distribution_major_version == "NA")
|
||||||
|
- not (ansible_distribution == "Ubuntu" and ansible_distribution_version is version('15.04', '<'))
|
||||||
|
- not (ansible_distribution == "Debian" and ansible_distribution_version is version('8', '<'))
|
||||||
|
|
||||||
- name: Kibana configuration
|
- name: Kibana configuration
|
||||||
template:
|
template:
|
||||||
|
|||||||
@ -11,7 +11,10 @@
|
|||||||
- name: Reload systemd
|
- name: Reload systemd
|
||||||
systemd: daemon_reload=yes
|
systemd: daemon_reload=yes
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: not (ansible_distribution == "Amazon" and ansible_distribution_major_version == "NA")
|
when:
|
||||||
|
- not (ansible_distribution == "Amazon" and ansible_distribution_major_version == "NA")
|
||||||
|
- not (ansible_distribution == "Ubuntu" and ansible_distribution_version is version('15.04', '<'))
|
||||||
|
- not (ansible_distribution == "Debian" and ansible_distribution_version is version('8', '<'))
|
||||||
|
|
||||||
- name: Amazon Linux create service
|
- name: Amazon Linux create service
|
||||||
shell: /usr/share/logstash/bin/system-install /etc/logstash/startup.options
|
shell: /usr/share/logstash/bin/system-install /etc/logstash/startup.options
|
||||||
|
|||||||
@ -16,7 +16,10 @@
|
|||||||
- name: Reload systemd
|
- name: Reload systemd
|
||||||
systemd: daemon_reload=yes
|
systemd: daemon_reload=yes
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: not (ansible_distribution == "Amazon" and ansible_distribution_major_version == "NA")
|
when:
|
||||||
|
- not (ansible_distribution == "Amazon" and ansible_distribution_major_version == "NA")
|
||||||
|
- not (ansible_distribution == "Ubuntu" and ansible_distribution_version is version('15.04', '<'))
|
||||||
|
- not (ansible_distribution == "Debian" and ansible_distribution_version is version('8', '<'))
|
||||||
|
|
||||||
- name: Ensure Filebeat is started and enabled at boot.
|
- name: Ensure Filebeat is started and enabled at boot.
|
||||||
service:
|
service:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user