Skip to content

Commit

Permalink
move when condition in extra vips block validation
Browse files Browse the repository at this point in the history
moving it to the start of the task for better visibility
  • Loading branch information
manurodriguez committed Aug 16, 2023
1 parent 2e1aad2 commit c3d84fd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions roles/validate_inventory/tasks/ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
loop: "{{ groups['masters'] + (groups['workers'] | default([])) }}" # This should not include day2_workers as they can be RWNs

- name: Validate extra VIPs for dualstack
when:
- extra_api_vip is defined
- extra_api_vip | length > 0
- extra_ingress_vip is defined
- extra_ingress_vip | length > 0
block:
- name: Assert that Openshift version is supported for dualstack VIPs
assert:
Expand All @@ -56,8 +61,3 @@
- vip_dhcp_allocation == false
- extra_machine_networks is defined
loop: "{{ hostvars['assisted_installer']['extra_machine_networks'] }}"
when:
- extra_api_vip is defined
- extra_api_vip | length > 0
- extra_ingress_vip is defined
- extra_ingress_vip | length > 0

0 comments on commit c3d84fd

Please sign in to comment.