Skip to content

Commit

Permalink
Remove unnecessary conditional when graylog_version is < 5.0, graylog…
Browse files Browse the repository at this point in the history
…_install_enterprise_package does not apply in that case.
  • Loading branch information
etgraylog committed Jan 9, 2025
1 parent bf77d53 commit 7623926
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tasks/setup-Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
apt:
name: "graylog-server{% if graylog_full_version is defined %}={{ graylog_full_version }}{% endif %}"
state: "{{ graylog_package_state }}"
when: (graylog_install_enterprise_package | bool == false and graylog_version is version('5.0', '<'))
when: graylog_version is version('5.0', '<')
notify: "restart graylog-server"

- name: "Graylog Open server package should be installed"
Expand Down
2 changes: 1 addition & 1 deletion tasks/setup-RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
yum:
name: "graylog-server{% if graylog_full_version is defined %}-{{ graylog_full_version }}{% endif %}"
state: "{{ graylog_package_state }}"
when: (graylog_install_enterprise_package | bool == false and graylog_version is version('5.0', '<'))
when: graylog_version is version('5.0', '<')
notify: "restart graylog-server"

- name: "Graylog Open server package should be installed"
Expand Down

0 comments on commit 7623926

Please sign in to comment.