Skip to content

Commit

Permalink
Only test when it's defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Dec 16, 2021
1 parent 4f18122 commit 8df4367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/assert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
label: "{{ item.name }}"
when:
- httpd_vhosts is defined
- item.create_docroot
- item.create_docroot is defined

- name: test if item.serveralias in httpd_vhosts is set correctly
ansible.builtin.assert:
Expand Down

0 comments on commit 8df4367

Please sign in to comment.