Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelogs/fragments/fix_broken_conditionals.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- "Fix broken conditionals when using on ansible-core >= 2.19 because of some playbooks changes"
4 changes: 2 additions & 2 deletions roles/monitoring_plugins/tasks/install_on_Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
changed_when: apt_result.stdout is defined
when:
- needed_packages is defined
- needed_packages
- needed_packages | length > 0

- name: Apt - remove non-requested packages
become: yes
Expand All @@ -20,4 +20,4 @@
autoremove: "{{ icinga_monitoring_plugins_autoremove }}"
when:
- icinga_monitoring_plugins_remove
- unwanted_packages
- unwanted_packages | length > 0
6 changes: 3 additions & 3 deletions roles/monitoring_plugins/tasks/install_on_RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
when:
- ansible_distribution_major_version < "8"
- needed_packages is defined
- needed_packages
- needed_packages | length > 0

- name: Dnf - install requested packages
become: yes
Expand All @@ -26,7 +26,7 @@
when:
- ansible_distribution_major_version >= "8"
- needed_packages is defined
- needed_packages
- needed_packages | length > 0

- name: Yum - remove non-requested packages
become: yes
Expand All @@ -36,4 +36,4 @@
autoremove: "{{ icinga_monitoring_plugins_autoremove }}"
when:
- icinga_monitoring_plugins_remove
- unwanted_packages
- unwanted_packages | length > 0
4 changes: 2 additions & 2 deletions roles/monitoring_plugins/tasks/install_on_Suse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
changed_when: zypper_result.stdout is defined
when:
- needed_packages is defined
- needed_packages
- needed_packages | length > 0

- name: Zypper - remove non-requested packages
become: yes
Expand All @@ -20,4 +20,4 @@
clean_deps: "{{ icinga_monitoring_plugins_autoremove }}"
when:
- icinga_monitoring_plugins_remove
- unwanted_packages
- unwanted_packages | length > 0