Skip to content

Commit ef23302

Browse files
committed
Make conditionals explicit booleans
1 parent 9218c10 commit ef23302

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

roles/ifw/tasks/install_powershell_framework.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
ifw_framework_version: "{{ _repo_html.content | regex_findall('[\\d\\.]+\\.zip') | community.general.version_sort | last | replace('.zip', '') }}"
1717

1818
- name: Determine Icinga PowerShell Framework module path
19-
when: not ifw_framework_path
19+
when: not ifw_framework_path is none
2020
block:
2121
- name: Check existence of possible module paths
2222
ansible.windows.win_stat:

roles/ifw/tasks/manage_repositories.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
vars:
3535
_current_repository: "{{ _current_repositories_json | selectattr('Name', 'defined') | selectattr('Name', 'eq', item.name) }}"
3636
when:
37-
- not _current_repository
37+
- _current_repository | length == 0
3838
ansible.windows.win_shell: Add-IcingaRepository -Name "{{ item.name }}" -RemotePath "{{ item.remote_path }}"
3939

4040
- name: Push fixed repositories to the end of the list (lowest priority)

0 commit comments

Comments
 (0)